Struct snarkvm_algorithms::polycommit::sonic_pc::PolynomialInfo
source · pub struct PolynomialInfo { /* private fields */ }
Implementations§
source§impl PolynomialInfo
impl PolynomialInfo
sourcepub fn new(
label: PolynomialLabel,
degree_bound: Option<usize>,
hiding_bound: Option<usize>
) -> Self
pub fn new( label: PolynomialLabel, degree_bound: Option<usize>, hiding_bound: Option<usize> ) -> Self
Construct a new labeled polynomial by consuming polynomial
.
sourcepub fn degree_bound(&self) -> Option<usize>
pub fn degree_bound(&self) -> Option<usize>
Retrieve the degree bound in self
.
sourcepub fn hiding_bound(&self) -> Option<usize>
pub fn hiding_bound(&self) -> Option<usize>
Retrieve the hiding bound for the polynomial in self
.
Trait Implementations§
source§impl CanonicalDeserialize for PolynomialInfo
impl CanonicalDeserialize for PolynomialInfo
fn deserialize_with_mode<R: Read>( reader: R, compress: Compress, validate: Validate ) -> Result<Self, SerializationError>
fn deserialize_compressed<R>(reader: R) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_compressed_unchecked<R>(
reader: R
) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_uncompressed<R>(reader: R) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_uncompressed_unchecked<R>(
reader: R
) -> Result<Self, SerializationError>where
R: Read,
source§impl CanonicalSerialize for PolynomialInfo
impl CanonicalSerialize for PolynomialInfo
fn serialize_with_mode<W: Write>( &self, writer: W, compress: Compress ) -> Result<(), SerializationError>
fn serialized_size(&self, compress: Compress) -> usize
fn serialize_compressed<W>(&self, writer: W) -> Result<(), SerializationError>where
W: Write,
fn compressed_size(&self) -> usize
fn serialize_uncompressed<W>(&self, writer: W) -> Result<(), SerializationError>where
W: Write,
fn uncompressed_size(&self) -> usize
source§impl Clone for PolynomialInfo
impl Clone for PolynomialInfo
source§fn clone(&self) -> PolynomialInfo
fn clone(&self) -> PolynomialInfo
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 PolynomialInfo
impl Debug for PolynomialInfo
source§impl PartialEq for PolynomialInfo
impl PartialEq for PolynomialInfo
source§fn eq(&self, other: &PolynomialInfo) -> bool
fn eq(&self, other: &PolynomialInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Valid for PolynomialInfo
impl Valid for PolynomialInfo
fn check(&self) -> Result<(), SerializationError>
fn batch_check<'a>(
batch: impl Iterator<Item = &'a Self> + Send
) -> Result<(), SerializationError>where
Self: 'a,
impl Eq for PolynomialInfo
impl StructuralPartialEq for PolynomialInfo
Auto Trait Implementations§
impl RefUnwindSafe for PolynomialInfo
impl Send for PolynomialInfo
impl Sync for PolynomialInfo
impl Unpin for PolynomialInfo
impl UnwindSafe for PolynomialInfo
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.