Trait snarkvm_gadgets::traits::fields::to_constraint_field::ToConstraintFieldGadget[][src]

pub trait ToConstraintFieldGadget<F: PrimeField> {
    fn to_constraint_field<CS: ConstraintSystem<F>>(
        &self,
        cs: CS
    ) -> Result<Vec<FpGadget<F>>, SynthesisError>; }
Expand description

Specifies how to convert a variable of type Self to variables of type FpGadget<F>

Required methods

Converts self to FpGadget<F> variables.

Implementors