pub struct LabeledPolynomialWithBasis<'a, F: PrimeField> {
pub info: PolynomialInfo,
pub polynomial: PolynomialWithBasis<'a, F>,
}Fields§
§info: PolynomialInfo§polynomial: PolynomialWithBasis<'a, F>Implementations§
Source§impl<'a, F: PrimeField> LabeledPolynomialWithBasis<'a, F>
impl<'a, F: PrimeField> LabeledPolynomialWithBasis<'a, F>
Sourcepub fn new_monomial_basis(
label: PolynomialLabel,
polynomial: &'a Polynomial<'_, F>,
degree_bound: Option<usize>,
hiding_bound: Option<usize>,
) -> Self
pub fn new_monomial_basis( label: PolynomialLabel, polynomial: &'a Polynomial<'_, F>, degree_bound: Option<usize>, hiding_bound: Option<usize>, ) -> Self
Construct a new labeled polynomial by consuming polynomial.
pub fn new_lagrange_basis( label: PolynomialLabel, polynomial: EvaluationsOnDomain<F>, hiding_bound: Option<usize>, ) -> Self
pub fn new_lagrange_basis_ref( label: PolynomialLabel, polynomial: &'a EvaluationsOnDomain<F>, hiding_bound: Option<usize>, ) -> Self
Sourcepub fn info(&self) -> &PolynomialInfo
pub fn info(&self) -> &PolynomialInfo
Return the information about the label, degree bound, and hiding bound
of self.
pub fn degree(&self) -> usize
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<'a, F: Clone + PrimeField> Clone for LabeledPolynomialWithBasis<'a, F>
impl<'a, F: Clone + PrimeField> Clone for LabeledPolynomialWithBasis<'a, F>
Source§fn clone(&self) -> LabeledPolynomialWithBasis<'a, F>
fn clone(&self) -> LabeledPolynomialWithBasis<'a, 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<'a, F: Debug + PrimeField> Debug for LabeledPolynomialWithBasis<'a, F>
impl<'a, F: Debug + PrimeField> Debug for LabeledPolynomialWithBasis<'a, F>
Source§impl<'a, F: PrimeField> From<&'a LabeledPolynomial<F>> for LabeledPolynomialWithBasis<'a, F>
impl<'a, F: PrimeField> From<&'a LabeledPolynomial<F>> for LabeledPolynomialWithBasis<'a, F>
Source§fn from(other: &'a LabeledPolynomial<F>) -> Self
fn from(other: &'a LabeledPolynomial<F>) -> Self
Converts to this type from the input type.
Source§impl<F: PrimeField> From<LabeledPolynomial<F>> for LabeledPolynomialWithBasis<'_, F>
impl<F: PrimeField> From<LabeledPolynomial<F>> for LabeledPolynomialWithBasis<'_, F>
Source§fn from(other: LabeledPolynomial<F>) -> Self
fn from(other: LabeledPolynomial<F>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a, F> Freeze for LabeledPolynomialWithBasis<'a, F>where
F: Freeze,
impl<'a, F> RefUnwindSafe for LabeledPolynomialWithBasis<'a, F>where
F: RefUnwindSafe,
impl<'a, F> Send for LabeledPolynomialWithBasis<'a, F>
impl<'a, F> Sync for LabeledPolynomialWithBasis<'a, F>
impl<'a, F> Unpin for LabeledPolynomialWithBasis<'a, F>where
F: Unpin,
impl<'a, F> UnwindSafe for LabeledPolynomialWithBasis<'a, F>where
F: UnwindSafe + RefUnwindSafe,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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