Trait ToField

Source
pub trait ToField {
    type Field: FieldTrait;

    // Required method
    fn to_field(&self) -> Self::Field;
}
Expand description

Unary operator for converting to a base field.

Required Associated Types§

Required Methods§

Source

fn to_field(&self) -> Self::Field

Returns a circuit as a base field element.

Implementors§

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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