pub struct Monomial<F: PrimeField> {
pub exponent: usize,
pub coefficients: F,
}Expand description
Represents a single term in a polynomial, consisting of an exponent and a coefficient.
Fields§
§exponent: usizeThe exponent of the monomial.
coefficients: FThe coefficient of the monomial.
Implementations§
Trait Implementations§
Source§impl<F: Ord + PrimeField> Ord for Monomial<F>
impl<F: Ord + PrimeField> Ord for Monomial<F>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<F: PartialOrd + PrimeField> PartialOrd for Monomial<F>
impl<F: PartialOrd + PrimeField> PartialOrd for Monomial<F>
impl<F: Copy + PrimeField> Copy for Monomial<F>
impl<F: Eq + PrimeField> Eq for Monomial<F>
impl<F: PrimeField> StructuralPartialEq for Monomial<F>
Auto Trait Implementations§
impl<F> Freeze for Monomial<F>where
F: Freeze,
impl<F> RefUnwindSafe for Monomial<F>where
F: RefUnwindSafe,
impl<F> Send for Monomial<F>
impl<F> Sync for Monomial<F>
impl<F> Unpin for Monomial<F>where
F: Unpin,
impl<F> UnwindSafe for Monomial<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