pub enum BasicSnarkyConstraint<Var> {
Boolean(Var),
Equal(Var, Var),
Square(Var, Var),
R1CS(Var, Var, Var),
}
Variants§
Implementations§
source§impl<F> BasicSnarkyConstraint<FieldVar<F>>where
F: PrimeField,
impl<F> BasicSnarkyConstraint<FieldVar<F>>where F: PrimeField,
pub fn check_constraint( &self, env: &impl WitnessGeneration<F> ) -> Result<(), Box<SnarkyRuntimeError>>
Trait Implementations§
Auto Trait Implementations§
impl<Var> RefUnwindSafe for BasicSnarkyConstraint<Var>where Var: RefUnwindSafe,
impl<Var> Send for BasicSnarkyConstraint<Var>where Var: Send,
impl<Var> Sync for BasicSnarkyConstraint<Var>where Var: Sync,
impl<Var> Unpin for BasicSnarkyConstraint<Var>where Var: Unpin,
impl<Var> UnwindSafe for BasicSnarkyConstraint<Var>where Var: UnwindSafe,
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