Struct snarkvm_algorithms::polycommit::sonic_pc::PolynomialInfo
source · pub struct PolynomialInfo { /* private fields */ }
Implementations
sourceimpl 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
sourceimpl 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,
sourceimpl 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
sourceimpl Clone for PolynomialInfo
impl Clone for PolynomialInfo
sourcefn clone(&self) -> PolynomialInfo
fn clone(&self) -> PolynomialInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PolynomialInfo
impl Debug for PolynomialInfo
sourceimpl PartialEq<PolynomialInfo> for PolynomialInfo
impl PartialEq<PolynomialInfo> for PolynomialInfo
sourcefn eq(&self, other: &PolynomialInfo) -> bool
fn eq(&self, other: &PolynomialInfo) -> bool
sourceimpl 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 StructuralEq 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.