pub trait ToFields {
    type Field: FieldTrait;

    fn to_fields(&self) -> Result<Vec<Self::Field, Global>, 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, Global>, Error>

Returns the object as a list of base field elements.

Implementations on Foreign Types§

§

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

§

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

Returns the group as field elements.

§

type Field = Field<E>

§

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

§

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

Returns the integer as field elements.

§

type Field = Field<E>

Implementors§