#[repr(transparent)]pub struct DynamicPolyVecF<F: PrimeField>(pub Vec<DynamicPolynomialF<F>>);Expand description
Unfortunately, we cannot implement of GenTranscribable for
Vec<DynamicPolynomialF<F>> since they both are foreign types, so we define
this wrapper as a workaround.
Tuple Fields§
§0: Vec<DynamicPolynomialF<F>>Implementations§
Source§impl<F: PrimeField> DynamicPolyVecF<F>
impl<F: PrimeField> DynamicPolyVecF<F>
pub fn reinterpret(value: &Vec<DynamicPolynomialF<F>>) -> &Self
Trait Implementations§
Source§impl<F: Clone + PrimeField> Clone for DynamicPolyVecF<F>
impl<F: Clone + PrimeField> Clone for DynamicPolyVecF<F>
Source§fn clone(&self) -> DynamicPolyVecF<F>
fn clone(&self) -> DynamicPolyVecF<F>
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<F: Debug + PrimeField> Debug for DynamicPolyVecF<F>
impl<F: Debug + PrimeField> Debug for DynamicPolyVecF<F>
Source§impl<F: Default + PrimeField> Default for DynamicPolyVecF<F>
impl<F: Default + PrimeField> Default for DynamicPolyVecF<F>
Source§fn default() -> DynamicPolyVecF<F>
fn default() -> DynamicPolyVecF<F>
Returns the “default value” for a type. Read more
Source§impl<F: PrimeField> From<Vec<DynamicPolynomialF<F>>> for DynamicPolyVecF<F>
impl<F: PrimeField> From<Vec<DynamicPolynomialF<F>>> for DynamicPolyVecF<F>
Source§fn from(value: Vec<DynamicPolynomialF<F>>) -> Self
fn from(value: Vec<DynamicPolynomialF<F>>) -> Self
Converts to this type from the input type.
Source§impl<F> GenTranscribable for DynamicPolyVecF<F>where
F: PrimeField,
F::Inner: ConstTranscribable,
F::Modulus: ConstTranscribable,
impl<F> GenTranscribable for DynamicPolyVecF<F>where
F: PrimeField,
F::Inner: ConstTranscribable,
F::Modulus: ConstTranscribable,
Source§fn read_transcription_bytes_exact(bytes: &[u8]) -> Self
fn read_transcription_bytes_exact(bytes: &[u8]) -> Self
Creates a new instance from a byte buffer.
The buffer must be exactly the expected length.
Source§fn write_transcription_bytes_exact(&self, buf: &mut [u8])
fn write_transcription_bytes_exact(&self, buf: &mut [u8])
Transcribes the current instance into a byte buffer.
The buffer must be exactly the expected length.
Source§impl<F: Hash + PrimeField> Hash for DynamicPolyVecF<F>
impl<F: Hash + PrimeField> Hash for DynamicPolyVecF<F>
Source§impl<F: PartialEq + PrimeField> PartialEq for DynamicPolyVecF<F>
impl<F: PartialEq + PrimeField> PartialEq for DynamicPolyVecF<F>
Source§impl<F> Transcribable for DynamicPolyVecF<F>where
F: PrimeField,
F::Inner: ConstTranscribable,
F::Modulus: ConstTranscribable,
impl<F> Transcribable for DynamicPolyVecF<F>where
F: PrimeField,
F::Inner: ConstTranscribable,
F::Modulus: ConstTranscribable,
Source§fn get_num_bytes(&self) -> usize
fn get_num_bytes(&self) -> usize
Returns the number of bytes required to represent this type.
The buffer passed to
write_transcription_bytes should be exactly the
length returned by this function.Source§const LENGTH_NUM_BYTES: usize = u32::NUM_BYTES
const LENGTH_NUM_BYTES: usize = u32::NUM_BYTES
Number of bytes required to represent length of this type, could be
zero if known in advance.
Source§fn read_num_bytes(bytes: &[u8]) -> usize
fn read_num_bytes(bytes: &[u8]) -> usize
Read number of bytes required to represent this type.
The buffer must be exactly
LENGTH_NUM_BYTES long.
The buffer passed to read_transcription_bytes should be exactly the
length returned by this function.Source§fn read_transcription_bytes_subset(bytes: &[u8]) -> (Self, &[u8])
fn read_transcription_bytes_subset(bytes: &[u8]) -> (Self, &[u8])
Reads an instance of this type from the beginning of the byte slice, and
returns the instance along with the remaining byte slice.
impl<F: Eq + PrimeField> Eq for DynamicPolyVecF<F>
impl<F: PrimeField> StructuralPartialEq for DynamicPolyVecF<F>
Auto Trait Implementations§
impl<F> Freeze for DynamicPolyVecF<F>
impl<F> RefUnwindSafe for DynamicPolyVecF<F>where
F: RefUnwindSafe,
impl<F> Send for DynamicPolyVecF<F>
impl<F> Sync for DynamicPolyVecF<F>
impl<F> Unpin for DynamicPolyVecF<F>where
F: Unpin,
impl<F> UnsafeUnpin for DynamicPolyVecF<F>
impl<F> UnwindSafe for DynamicPolyVecF<F>where
F: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more