TestingAssembly

Struct TestingAssembly 

Source
pub struct TestingAssembly<E: Engine> { /* private fields */ }

Implementations§

Source§

impl<E: Engine> TestingAssembly<E>

Source

pub fn new() -> Self

Source

pub fn num_gates(&self) -> usize

Source

pub fn is_satisfied(self) -> bool

Trait Implementations§

Source§

impl<E: Engine> ConstraintSystem<E> for TestingAssembly<E>

Source§

fn alloc<F>(&mut self, value: F) -> Result<Variable, SynthesisError>
where F: FnOnce() -> Result<E::Fr, SynthesisError>,

Source§

fn alloc_input<F>(&mut self, value: F) -> Result<Variable, SynthesisError>
where F: FnOnce() -> Result<E::Fr, SynthesisError>,

Source§

fn enforce_boolean(&mut self, variable: Variable) -> Result<(), SynthesisError>

Source§

fn new_gate( &mut self, variables: (Variable, Variable, Variable), coeffs: (E::Fr, E::Fr, E::Fr, E::Fr, E::Fr), ) -> Result<(), SynthesisError>

Source§

fn enforce_constant( &mut self, variable: Variable, constant: E::Fr, ) -> Result<(), SynthesisError>

Source§

fn enforce_mul_2( &mut self, variables: (Variable, Variable), ) -> Result<(), SynthesisError>

Source§

fn enforce_mul_3( &mut self, variables: (Variable, Variable, Variable), ) -> Result<(), SynthesisError>

Source§

fn enforce_zero_2( &mut self, variables: (Variable, Variable), coeffs: (E::Fr, E::Fr), ) -> Result<(), SynthesisError>

Source§

fn enforce_zero_3( &mut self, variables: (Variable, Variable, Variable), coeffs: (E::Fr, E::Fr, E::Fr), ) -> Result<(), SynthesisError>

Source§

fn get_dummy_variable(&self) -> Variable

Source§

fn get_value(&self, _variable: Variable) -> Result<E::Fr, SynthesisError>

Source§

impl<E: Debug + Engine> Debug for TestingAssembly<E>
where E::Fr: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<E> Freeze for TestingAssembly<E>

§

impl<E> RefUnwindSafe for TestingAssembly<E>
where <E as ScalarEngine>::Fr: RefUnwindSafe,

§

impl<E> Send for TestingAssembly<E>

§

impl<E> Sync for TestingAssembly<E>

§

impl<E> Unpin for TestingAssembly<E>
where <E as ScalarEngine>::Fr: Unpin,

§

impl<E> UnwindSafe for TestingAssembly<E>
where <E as ScalarEngine>::Fr: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.