Trait snarkvm_r1cs::ToConstraintField [−][src]
pub trait ToConstraintField<F> where
F: Field, { fn to_field_elements(&self) -> Result<Vec<F, Global>, ConstraintFieldError>; }
Expand description
Types that can be converted to a vector of F
elements. Useful for specifying
how public inputs to a constraint system should be represented inside
that constraint system.
Required methods
fn to_field_elements(&self) -> Result<Vec<F, Global>, ConstraintFieldError>
Implementations on Foreign Types
pub fn to_field_elements(
&self
) -> Result<Vec<<P as Fp2Parameters>::Fp, Global>, ConstraintFieldError>