pub struct Assignments<F> {
pub instance_assignment: Vec<F>,
pub witness_assignment: Vec<F>,
pub lc_assignment: Vec<F>,
}Expand description
Assignments for a GR1CS constraint system.
Fields§
§instance_assignment: Vec<F>Assignments to the public input variables. This is empty if self.mode == SynthesisMode::Setup.
witness_assignment: Vec<F>Assignments to the private input variables. This is empty if self.mode == SynthesisMode::Setup.
lc_assignment: Vec<F>A cache for the linear combination assignments. It shows evaluation result of each linear combination
Implementations§
Source§impl<F: Field> Assignments<F>
impl<F: Field> Assignments<F>
Sourcepub fn assigned_value(&self, v: Variable) -> Option<F>
pub fn assigned_value(&self, v: Variable) -> Option<F>
Obtain the assignment corresponding to the Variable v.
Trait Implementations§
Source§impl<F: Clone> Clone for Assignments<F>
impl<F: Clone> Clone for Assignments<F>
Source§fn clone(&self) -> Assignments<F>
fn clone(&self) -> Assignments<F>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<F> Freeze for Assignments<F>
impl<F> RefUnwindSafe for Assignments<F>where
F: RefUnwindSafe,
impl<F> Send for Assignments<F>where
F: Send,
impl<F> Sync for Assignments<F>where
F: Sync,
impl<F> Unpin for Assignments<F>where
F: Unpin,
impl<F> UnsafeUnpin for Assignments<F>
impl<F> UnwindSafe for Assignments<F>where
F: 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