Trait snarkvm_console_program::group::FromField
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§
type Field: FieldTrait
Required Methods§
fn from_field(field: &Self::Field) -> Result<Self, Error>where
Self: Sized,
fn from_field(field: &Self::Field) -> Result<Self, Error>where Self: Sized,
Initializes an object from a base field element.