pub trait ToFields {
    type Field: FieldTrait;

    // Required method
    fn to_fields(&self) -> Vec<Self::Field, Global>;
}
Expand description

Unary operator for converting to a list of base fields.

Required Associated Types§

Required Methods§

source

fn to_fields(&self) -> Vec<Self::Field, Global>

Returns the circuit as a list of base field elements.

Implementations on Foreign Types§

§

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

§

fn to_fields(&self) -> Vec<<Integer<E, I> as ToFields>::Field, Global>

Casts an integer into a list of base fields.

§

type Field = Field<E>

Implementors§

source§

impl<A> ToFields for &Literal<A>where A: Aleo,

§

type Field = Field<A>

source§

impl<A> ToFields for InputID<A>where A: Aleo,

§

type Field = Field<A>

source§

impl<A> ToFields for Literal<A>where A: Aleo,

§

type Field = Field<A>

source§

impl<A> ToFields for Plaintext<A>where A: Aleo,

§

type Field = Field<A>

source§

impl<A> ToFields for Value<A>where A: Aleo,

§

type Field = Field<A>

source§

impl<A> ToFields for Ciphertext<A>where A: Aleo,

§

type Field = Field<A>

source§

impl<A> ToFields for ProgramID<A>where A: Aleo,

§

type Field = Field<A>

source§

impl<A> ToFields for Record<A, Plaintext<A>>where A: Aleo,

§

type Field = Field<A>

source§

impl<A> ToFields for Record<A, Ciphertext<A>>where A: Aleo,

§

type Field = Field<A>

§

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

§

type Field = Field<E>

§

impl<E> ToFields for StringType<E>where E: Environment,

§

type Field = Field<E>