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
fn to_constraint_field<CS: ConstraintSystem<F>>(
&self,
cs: CS
) -> Result<Vec<FpGadget<F>>, SynthesisError>
fn to_constraint_field<CS: ConstraintSystem<F>>(
&self,
cs: CS
) -> Result<Vec<FpGadget<F>>, SynthesisError>
Converts self
to FpGadget<F>
variables.