pub struct RoundCoeffs<F: Field>(pub Vec<F>);
Expand description
A univariate polynomial in monomial basis.
The coefficient at position i
in the inner vector corresponds to the term $X^i$.
Tuple Fields§
§0: Vec<F>
Implementations§
source§impl<F: Field> RoundCoeffs<F>
impl<F: Field> RoundCoeffs<F>
sourcepub fn isomorphic<FI: Field + From<F>>(self) -> RoundCoeffs<FI>
pub fn isomorphic<FI: Field + From<F>>(self) -> RoundCoeffs<FI>
Representation in an isomorphic field
sourcepub fn truncate(self) -> RoundProof<F>
pub fn truncate(self) -> RoundProof<F>
Truncate one coefficient from the polynomial to a more compact round proof.
Trait Implementations§
source§impl<F: Field> Add<&RoundCoeffs<F>> for RoundCoeffs<F>
impl<F: Field> Add<&RoundCoeffs<F>> for RoundCoeffs<F>
source§impl<F: Field> AddAssign<&RoundCoeffs<F>> for RoundCoeffs<F>
impl<F: Field> AddAssign<&RoundCoeffs<F>> for RoundCoeffs<F>
source§fn add_assign(&mut self, rhs: &Self)
fn add_assign(&mut self, rhs: &Self)
Performs the
+=
operation. Read moresource§impl<F: Clone + Field> Clone for RoundCoeffs<F>
impl<F: Clone + Field> Clone for RoundCoeffs<F>
source§fn clone(&self) -> RoundCoeffs<F>
fn clone(&self) -> RoundCoeffs<F>
Returns a copy of the value. Read more
1.6.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: Default + Field> Default for RoundCoeffs<F>
impl<F: Default + Field> Default for RoundCoeffs<F>
source§fn default() -> RoundCoeffs<F>
fn default() -> RoundCoeffs<F>
Returns the “default value” for a type. Read more
source§impl<F: Field> Mul<F> for RoundCoeffs<F>
impl<F: Field> Mul<F> for RoundCoeffs<F>
source§impl<F: Field> MulAssign<F> for RoundCoeffs<F>
impl<F: Field> MulAssign<F> for RoundCoeffs<F>
source§fn mul_assign(&mut self, rhs: F)
fn mul_assign(&mut self, rhs: F)
Performs the
*=
operation. Read moreimpl<F: Eq + Field> Eq for RoundCoeffs<F>
impl<F: Field> StructuralPartialEq for RoundCoeffs<F>
Auto Trait Implementations§
impl<F> Freeze for RoundCoeffs<F>
impl<F> RefUnwindSafe for RoundCoeffs<F>
impl<F> Send for RoundCoeffs<F>
impl<F> Sync for RoundCoeffs<F>
impl<F> Unpin for RoundCoeffs<F>
impl<F> UnwindSafe for RoundCoeffs<F>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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