pub trait FromFields {
type Field: FieldTrait;
// Required method
fn from_fields(fields: &[Self::Field]) -> Result<Self>
where Self: Sized;
}
Expand description
Unary operator for converting from a list of base elements.
Required Associated Types§
type Field: FieldTrait
Required Methods§
sourcefn from_fields(fields: &[Self::Field]) -> Result<Self>where
Self: Sized,
fn from_fields(fields: &[Self::Field]) -> Result<Self>where Self: Sized,
Initializes an object from a list of base field elements.