pub trait FromField {
    type Field: FieldTrait;

    // Required method
    fn from_field(field: &Self::Field) -> Result<Self>
       where Self: Sized;
}
Expand description

Unary operator for converting from a base field element.

Required Associated Types§

Required Methods§

source

fn from_field(field: &Self::Field) -> Result<Self>where Self: Sized,

Initializes an object from a base field element.

Implementors§