pub trait ToField {
    type Field: FieldTrait;

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

Unary operator for converting to a base field.

Required Associated Types§

Required Methods§

source

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

Returns the object as a base field element.

Implementors§

source§

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

§

type Field = Field<E>