Trait ark_r1cs_std::R1CSVar[][src]

pub trait R1CSVar<F: Field> {
    type Value: Debug + Eq + Clone;
    fn cs(&self) -> ConstraintSystemRef<F>;
fn value(&self) -> Result<Self::Value, SynthesisError>; fn is_constant(&self) -> bool { ... } }
Expand description

This trait describes some core functionality that is common to high-level variables, such as Booleans, FieldVars, GroupVars, etc.

Associated Types

The type of the “native” value that Self represents in the constraint system.

Required methods

Returns the underlying ConstraintSystemRef.

If self is a constant value, then this must return ark_relations::r1cs::ConstraintSystemRef::None.

Returns the value that is assigned to self in the underlying ConstraintSystem.

Provided methods

Returns true if self is a circuit-generation-time constant.

Implementations on Foreign Types

Implementors