Struct snarkvm_polycommit::data_structures::LabeledCommitment[][src]

pub struct LabeledCommitment<C: PCCommitment> { /* fields omitted */ }

A commitment along with information about its degree bound (if any).

Implementations

impl<C: PCCommitment> LabeledCommitment<C>[src]

pub fn new(
    label: PolynomialLabel,
    commitment: C,
    degree_bound: Option<usize>
) -> Self
[src]

Instantiate a new polynomial_context.

pub fn label(&self) -> &String[src]

Return the label for self.

pub fn commitment(&self) -> &C[src]

Retrieve the commitment from self.

pub fn degree_bound(&self) -> Option<usize>[src]

Retrieve the degree bound in self.

Trait Implementations

impl<C: PCCommitment> CanonicalSerialize for LabeledCommitment<C>[src]

impl<C: Clone + PCCommitment> Clone for LabeledCommitment<C>[src]

impl<C: PCCommitment> ToBytes for LabeledCommitment<C>[src]

Auto Trait Implementations

impl<C> RefUnwindSafe for LabeledCommitment<C> where
    C: RefUnwindSafe
[src]

impl<C> Send for LabeledCommitment<C> where
    C: Send
[src]

impl<C> Sync for LabeledCommitment<C> where
    C: Sync
[src]

impl<C> Unpin for LabeledCommitment<C> where
    C: Unpin
[src]

impl<C> UnwindSafe for LabeledCommitment<C> where
    C: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,