pub enum SynthesisMode {
Setup,
Prove {
construct_matrices: bool,
},
}
Expand description
Defines the mode of operation of a ConstraintSystem
.
Variants§
Setup
Indicate to the ConstraintSystem
that it should only generate
constraint matrices and not populate the variable assignments.
Prove
Indicate to the ConstraintSystem
that it populate the variable
assignments. If additionally construct_matrices == true
, then generate
the matrices as in the Setup
case.
Trait Implementations§
Source§impl Clone for SynthesisMode
impl Clone for SynthesisMode
Source§fn clone(&self) -> SynthesisMode
fn clone(&self) -> SynthesisMode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SynthesisMode
impl Debug for SynthesisMode
Source§impl Ord for SynthesisMode
impl Ord for SynthesisMode
Source§fn cmp(&self, other: &SynthesisMode) -> Ordering
fn cmp(&self, other: &SynthesisMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SynthesisMode
impl PartialEq for SynthesisMode
Source§impl PartialOrd for SynthesisMode
impl PartialOrd for SynthesisMode
impl Copy for SynthesisMode
impl Eq for SynthesisMode
impl StructuralPartialEq for SynthesisMode
Auto Trait Implementations§
impl Freeze for SynthesisMode
impl RefUnwindSafe for SynthesisMode
impl Send for SynthesisMode
impl Sync for SynthesisMode
impl Unpin for SynthesisMode
impl UnwindSafe for SynthesisMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)