pub trait FromField {
    type Field: FieldTrait;

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

Unary operator for converting from a base field element.

Required Associated Types§

Required Methods§

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

Initializes an object from a base field element.

Implementors§

§

impl<E> FromField for Group<E>
where E: Environment,

§

type Field = Field<E>

§

impl<E> FromField for Scalar<E>
where E: Environment,

§

type Field = Field<E>

§

impl<E, I> FromField for Integer<E, I>
where E: Environment, I: IntegerType,

§

type Field = Field<E>