Trait snarkvm_circuit_environment::traits::FromField
source · pub trait FromField {
type Field: FieldTrait;
// Required method
fn from_field(field: Self::Field) -> Self;
}
Expand description
Unary operator for converting from a base field element.
Required Associated Types§
type Field: FieldTrait
Required Methods§
sourcefn from_field(field: Self::Field) -> Self
fn from_field(field: Self::Field) -> Self
Casts a circuit from a base field element.
Object Safety§
This trait is not object safe.