pub struct PolynomialInfo {
pub max_multiplicands: usize,
pub num_variables: usize,
}Expand description
Stores the number of variables and max number of multiplicands of the added polynomial used by the prover. This data structures will is used as the verifier key.
Fields§
§max_multiplicands: usizemax number of multiplicands in each product
num_variables: usizenumber of variables of the polynomial
Trait Implementations§
Source§impl CanonicalDeserialize for PolynomialInfo
impl CanonicalDeserialize for PolynomialInfo
Source§fn deserialize_with_mode<R: Read>(
reader: R,
compress: Compress,
validate: Validate,
) -> Result<Self, SerializationError>
fn deserialize_with_mode<R: Read>( reader: R, compress: Compress, validate: Validate, ) -> Result<Self, SerializationError>
The general deserialize method that takes in customization flags.
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
Source§fn serialize_with_mode<W: Write>(
&self,
writer: W,
compress: Compress,
) -> Result<(), SerializationError>
fn serialize_with_mode<W: Write>( &self, writer: W, compress: Compress, ) -> Result<(), SerializationError>
The general serialize method that takes in customization flags.
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 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 moreSource§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,
Auto Trait Implementations§
impl Freeze for PolynomialInfo
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