pub trait ToField {
    type Field: FieldTrait;

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

Unary operator for converting to a base field.

Required Associated Types§

Required Methods§

source

fn to_field(&self) -> Self::Field

Returns a circuit as a base field element.

Implementations on Foreign Types§

source§

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

source§

fn to_field(&self) -> <Integer<E, I> as ToField>::Field

Casts an integer into a base field.

§

type Field = Field<E>

Implementors§

source§

impl<E> ToField for Address<E>where E: Environment,

§

type Field = Field<E>

source§

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

§

type Field = Field<E>