Struct snarkvm_circuit_environment::helpers::r1cs::R1CS
source · pub struct R1CS<F: PrimeField> { /* private fields */ }
Implementations§
source§impl<F: PrimeField> R1CS<F>
impl<F: PrimeField> R1CS<F>
sourcepub fn is_satisfied(&self) -> bool
pub fn is_satisfied(&self) -> bool
Returns true
if all constraints in the environment are satisfied.
sourcepub fn num_constants(&self) -> u64
pub fn num_constants(&self) -> u64
Returns the number of constants in the constraint system.
sourcepub fn num_public(&self) -> u64
pub fn num_public(&self) -> u64
Returns the number of public variables in the constraint system.
sourcepub fn num_private(&self) -> u64
pub fn num_private(&self) -> u64
Returns the number of private variables in the constraint system.
sourcepub fn num_constraints(&self) -> u64
pub fn num_constraints(&self) -> u64
Returns the number of constraints in the constraint system.
sourcepub fn num_nonzeros(&self) -> (u64, u64, u64)
pub fn num_nonzeros(&self) -> (u64, u64, u64)
Returns the number of nonzeros in the constraint system.
sourcepub fn to_public_variables(&self) -> &Vec<Variable<F>>
pub fn to_public_variables(&self) -> &Vec<Variable<F>>
Returns the public variables in the constraint system.
sourcepub fn to_private_variables(&self) -> &Vec<Variable<F>>
pub fn to_private_variables(&self) -> &Vec<Variable<F>>
Returns the private variables in the constraint system.
sourcepub fn to_constraints(&self) -> &Vec<Rc<Constraint<F>>>
pub fn to_constraints(&self) -> &Vec<Rc<Constraint<F>>>
Returns the constraints in the constraint system.
Trait Implementations§
source§impl<F: PrimeField> Display for R1CS<F>
impl<F: PrimeField> Display for R1CS<F>
source§impl<F: PrimeField> From<R1CS<F>> for Assignment<F>
impl<F: PrimeField> From<R1CS<F>> for Assignment<F>
Auto Trait Implementations§
impl<F> RefUnwindSafe for R1CS<F>where F: RefUnwindSafe,
impl<F> !Send for R1CS<F>
impl<F> !Sync for R1CS<F>
impl<F> Unpin for R1CS<F>
impl<F> UnwindSafe for R1CS<F>where F: RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more