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 copy 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<'a, F: PrimeField> From<LabeledPolynomial<F>> for LabeledPolynomialWithBasis<'a, F>
impl<'a, F: PrimeField> From<LabeledPolynomial<F>> for LabeledPolynomialWithBasis<'a, 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