snarkvm_circuit_environment::traits

Trait ToField

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

Implementors§