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

Required Methods§

Source

fn from_field(field: Self::Field) -> Self

Casts a circuit from a base field element.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<A> FromField for Identifier<A>
where A: Aleo,

Source§

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

Source§

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

Source§

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