Trait snarkvm_console_network::ToFields

source ·
pub trait ToFields {
    type Field: FieldTrait;

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

Unary operator for converting to a list of base fields.

Required Associated Types§

Required Methods§

source

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

Returns the object as a list of base field elements.

Implementations on Foreign Types§

source§

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

source§

fn to_fields(&self) -> Result<Vec<<Group<E> as ToFields>::Field>, Error>

Returns the group as field elements.

source§

type Field = Field<E>

source§

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

source§

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

Returns the integer as field elements.

source§

type Field = Field<E>

Implementors§