snarkvm_console_collections::field

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

Implementors§

Source§

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

Source§

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