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

Implementations on Foreign Types

impl<P> ToConstraintField<<P as Fp2Parameters>::Fp> for Fp2<P> where
    P: Fp2Parameters
[src]

impl<F> ToConstraintField<F> for [u8] where
    F: PrimeField
[src]

impl<F> ToConstraintField<F> for bool where
    F: Field
[src]

impl<F> ToConstraintField<F> for Vec<F, Global> where
    F: Field
[src]

impl<F> ToConstraintField<F> for () where
    F: Field
[src]

impl<F> ToConstraintField<F> for [u8; 32] where
    F: PrimeField
[src]

impl<F> ToConstraintField<F> for [F] where
    F: Field
[src]

Implementors

impl<F> ToConstraintField<F> for F where
    F: PrimeField
[src]