pub trait FromFields {
type Field: FieldTrait;
fn from_fields(fields: &[Self::Field]) -> Result<Self, Error>
where
Self: Sized;
}
Expand description
Unary operator for converting from a list of base elements.
Required Associated Types
type Field: FieldTrait
Required Methods
fn from_fields(fields: &[Self::Field]) -> Result<Self, Error>where
Self: Sized,
fn from_fields(fields: &[Self::Field]) -> Result<Self, Error>where
Self: Sized,
Initializes an object from a list of base field elements.
Implementations on Foreign Types
impl<E, I> FromFields for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> FromFields for Integer<E, I>where
E: Environment,
I: IntegerType,
fn from_fields(
fields: &[<Integer<E, I> as FromFields>::Field]
) -> Result<Integer<E, I>, Error>
fn from_fields(
fields: &[<Integer<E, I> as FromFields>::Field]
) -> Result<Integer<E, I>, Error>
Initializes a new integer by recovering the x-coordinate of an affine group from a field element.