snarkvm_console_types_integers

Trait FromField

Source
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§

Source

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

Initializes an object from a base field element.

Implementors§