pub struct LabeledCommitment<C: PCCommitment> { /* private fields */ }
Expand description
A commitment along with information about its degree bound (if any).
Implementations§
source§impl<C: PCCommitment> LabeledCommitment<C>
impl<C: PCCommitment> LabeledCommitment<C>
sourcepub fn new(
label: PolynomialLabel,
commitment: C,
degree_bound: Option<usize>
) -> Self
pub fn new( label: PolynomialLabel, commitment: C, degree_bound: Option<usize> ) -> Self
Instantiate a new polynomial_context.
sourcepub fn commitment(&self) -> &C
pub fn commitment(&self) -> &C
Retrieve the commitment from self
.
sourcepub fn degree_bound(&self) -> Option<usize>
pub fn degree_bound(&self) -> Option<usize>
Retrieve the degree bound in self
.
Trait Implementations§
source§impl<C: Clone + PCCommitment> Clone for LabeledCommitment<C>
impl<C: Clone + PCCommitment> Clone for LabeledCommitment<C>
source§fn clone(&self) -> LabeledCommitment<C>
fn clone(&self) -> LabeledCommitment<C>
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<F: Field, C: PCCommitment + ToConstraintField<F>> ToConstraintField<F> for LabeledCommitment<C>
impl<F: Field, C: PCCommitment + ToConstraintField<F>> ToConstraintField<F> for LabeledCommitment<C>
fn to_field_elements(&self) -> Option<Vec<F>>
Auto Trait Implementations§
impl<C> RefUnwindSafe for LabeledCommitment<C>where C: RefUnwindSafe,
impl<C> Send for LabeledCommitment<C>where C: Send,
impl<C> Sync for LabeledCommitment<C>
impl<C> Unpin for LabeledCommitment<C>where C: Unpin,
impl<C> UnwindSafe for LabeledCommitment<C>where C: 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