PolyBase

Struct PolyBase 

Source
pub struct PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,
{ /* private fields */ }

Implementations§

Source§

impl<X, R> PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source

pub fn from_const(r: R) -> Self

Source

pub fn inner(&self) -> &Lc<X, R>

Source

pub fn nterms(&self) -> usize

Source

pub fn any_term(&self) -> Option<(&X, &R)>

Source

pub fn is_mono(&self) -> bool

Source

pub fn as_mono(&self) -> Option<X>

Source

pub fn coeff(&self, x: &X) -> &R

Source

pub fn iter(&self) -> impl Iterator<Item = (&X, &R)>

Source

pub fn coeff_for(&self, i: X::Deg) -> &R

Source

pub fn is_const(&self) -> bool

Source

pub fn const_term(&self) -> &R

Source

pub fn lead_term(&self) -> (&X, &R)

Source

pub fn lead_coeff(&self) -> &R

Source

pub fn lead_deg(&self) -> X::Deg

Source

pub fn map_coeffs<R2, F>(&self, f: F) -> PolyBase<X, R2>
where R2: Ring, for<'x> &'x R2: RingOps<R2>, F: Fn(&R) -> R2,

Source

pub fn sort_terms_by<F>(&self, cmp: F) -> impl Iterator<Item = (&X, &R)>
where F: Fn(&X, &X) -> Ordering,

Source

pub fn to_string_by<F>(&self, cmp: F, descending: bool) -> String
where F: Fn(&X, &X) -> Ordering,

Source§

impl<const X: char, R> PolyBase<Var<X, usize>, R>
where R: Ring, for<'x> &'x R: RingOps<R>,

Source

pub fn variable() -> Self

Source

pub fn mono(i: usize) -> Var<X, usize>

Source

pub fn eval(&self, x: &R) -> R
where for<'x, 'y> &'x R: Pow<&'y usize, Output = R>,

Source§

impl<const X: char, const Y: char, R> PolyBase<Var2<X, Y, usize>, R>
where R: Ring, for<'x> &'x R: RingOps<R>,

Source

pub fn variable(i: usize) -> Self

Source

pub fn mono(i: usize, j: usize) -> Var2<X, Y, usize>

Source

pub fn eval(&self, x: &R, y: &R) -> R
where for<'x, 'y> &'x R: Pow<&'y usize, Output = R>,

Source§

impl<const X: char, const Y: char, const Z: char, R> PolyBase<Var3<X, Y, Z, usize>, R>
where R: Ring, for<'x> &'x R: RingOps<R>,

Source

pub fn variable(i: usize) -> Self

Source

pub fn mono(i: usize, j: usize, k: usize) -> Var3<X, Y, Z, usize>

Source

pub fn eval(&self, x: &R, y: &R, z: &R) -> R
where for<'x, 'y> &'x R: Pow<&'y usize, Output = R>,

Source§

impl<const X: char, R> PolyBase<MultiVar<X, usize>, R>
where R: Ring, for<'x> &'x R: RingOps<R>,

Source

pub fn variable(i: usize) -> Self

Source

pub fn mono<const N: usize>(degs: [usize; N]) -> MultiVar<X, usize>

Source

pub fn lead_term_for(&self, k: usize) -> Option<(&MultiVar<X, usize>, &R)>

Source§

impl<const X: char, R> PolyBase<Var<X, isize>, R>
where R: Ring, for<'x> &'x R: RingOps<R>,

Source

pub fn variable() -> Self

Source

pub fn mono(i: isize) -> Var<X, isize>

Source

pub fn eval(&self, x: &R) -> R
where for<'x, 'y> &'x R: Pow<&'y isize, Output = R>,

Source§

impl<const X: char, const Y: char, R> PolyBase<Var2<X, Y, isize>, R>
where R: Ring, for<'x> &'x R: RingOps<R>,

Source

pub fn variable(i: usize) -> Self

Source

pub fn mono(i: isize, j: isize) -> Var2<X, Y, isize>

Source

pub fn eval(&self, x: &R, y: &R) -> R
where for<'x, 'y> &'x R: Pow<&'y isize, Output = R>,

Source§

impl<const X: char, const Y: char, const Z: char, R> PolyBase<Var3<X, Y, Z, isize>, R>
where R: Ring, for<'x> &'x R: RingOps<R>,

Source

pub fn variable(i: usize) -> Self

Source

pub fn mono(i: isize, j: isize, k: isize) -> Var3<X, Y, Z, isize>

Source

pub fn eval(&self, x: &R, y: &R, z: &R) -> R
where for<'x, 'y> &'x R: Pow<&'y isize, Output = R>,

Source§

impl<const X: char, R> PolyBase<MultiVar<X, isize>, R>
where R: Ring, for<'x> &'x R: RingOps<R>,

Source

pub fn variable(i: usize) -> Self

Source

pub fn mono<const N: usize>(degs: [isize; N]) -> MultiVar<X, isize>

Source

pub fn lead_term_for(&self, k: usize) -> Option<(&MultiVar<X, isize>, &R)>

Source§

impl<const X: char, R> PolyBase<Var<X, usize>, R>
where R: Field, for<'x> &'x R: FieldOps<R>,

Source

pub fn div_rem(&self, rhs: &Self) -> (Self, Self)

Trait Implementations§

Source§

impl<X, R> Add<&PolyBase<X, R>> for &PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>, PolyBase<X, R>: Clone,

Source§

type Output = PolyBase<X, R>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &PolyBase<X, R>) -> Self::Output

Performs the + operation. Read more
Source§

impl<X, R> Add<&PolyBase<X, R>> for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

type Output = PolyBase<X, R>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &PolyBase<X, R>) -> Self::Output

Performs the + operation. Read more
Source§

impl<X, R> Add<PolyBase<X, R>> for &PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>, PolyBase<X, R>: Clone,

Source§

type Output = PolyBase<X, R>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: PolyBase<X, R>) -> Self::Output

Performs the + operation. Read more
Source§

impl<X, R> Add for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

type Output = PolyBase<X, R>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: PolyBase<X, R>) -> Self::Output

Performs the + operation. Read more
Source§

impl<X, R> AddAssign<&PolyBase<X, R>> for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

fn add_assign(&mut self, rhs: &PolyBase<X, R>)

Performs the += operation. Read more
Source§

impl<X, R> AddAssign for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

fn add_assign(&mut self, rhs: PolyBase<X, R>)

Performs the += operation. Read more
Source§

impl<X, R> AddMon for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

fn sum<A, I>(itr: I) -> Self
where Self: AddAssign<A>, I: IntoIterator<Item = A>,

Source§

impl<X, R> Clone for PolyBase<X, R>
where X: Mono + Clone, R: Ring + Clone, for<'x> &'x R: RingOps<R>,

Source§

fn clone(&self) -> PolyBase<X, R>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<X, R> Debug for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<X, R> Default for PolyBase<X, R>
where X: Mono + Default, R: Ring + Default, for<'x> &'x R: RingOps<R>,

Source§

fn default() -> PolyBase<X, R>

Returns the “default value” for a type. Read more
Source§

impl<X, R> Display for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<const X: char, R> Div<&PolyBase<Var<X, usize>, R>> for &Poly<X, R>
where R: Field, for<'x> &'x R: FieldOps<R>, Poly<X, R>: Clone,

Source§

type Output = PolyBase<Var<X, usize>, R>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Poly<X, R>) -> Self::Output

Performs the / operation. Read more
Source§

impl<const X: char, R> Div<&PolyBase<Var<X, usize>, R>> for Poly<X, R>
where R: Field, for<'x> &'x R: FieldOps<R>,

Source§

type Output = PolyBase<Var<X, usize>, R>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Poly<X, R>) -> Self

Performs the / operation. Read more
Source§

impl<const X: char, R> Div<PolyBase<Var<X, usize>, R>> for &Poly<X, R>
where R: Field, for<'x> &'x R: FieldOps<R>, Poly<X, R>: Clone,

Source§

type Output = PolyBase<Var<X, usize>, R>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Poly<X, R>) -> Self::Output

Performs the / operation. Read more
Source§

impl<const X: char, R> DivAssign<&PolyBase<Var<X, usize>, R>> for Poly<X, R>
where R: Field, for<'x> &'x R: FieldOps<R>, Poly<X, R>: Default,

Source§

fn div_assign(&mut self, rhs: &Poly<X, R>)

Performs the /= operation. Read more
Source§

impl<X, R> Elem for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

impl<X, R> From<(X, R)> for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

fn from(pair: (X, R)) -> Self

Converts to this type from the input type.
Source§

impl<X, R> From<Lc<X, R>> for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

fn from(data: Lc<X, R>) -> Self

Converts to this type from the input type.
Source§

impl<X, R> From<PolyBase<X, R>> for Lc<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

fn from(poly: PolyBase<X, R>) -> Self

Converts to this type from the input type.
Source§

impl<X, R> From<X> for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

fn from(x: X) -> Self

Converts to this type from the input type.
Source§

impl<X, R> FromIterator<(X, R)> for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

fn from_iter<T: IntoIterator<Item = (X, R)>>(iter: T) -> Self

Creates a value from an iterator. Read more
Source§

impl<X, R> FromStr for PolyBase<X, R>
where X: Mono + FromStr, R: Ring + FromStr, for<'x> &'x R: RingOps<R>,

Source§

type Err = ()

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl<X, R> IntoIterator for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

type Item = (X, R)

The type of the elements being iterated over.
Source§

type IntoIter = IntoIter<X, R>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<X, R> Mon for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

fn product<A, I>(itr: I) -> Self
where Self: MulAssign<A>, I: IntoIterator<Item = A>,

Source§

impl<X, R> Mul<&PolyBase<X, R>> for &PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>, PolyBase<X, R>: Clone,

Source§

type Output = PolyBase<X, R>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &PolyBase<X, R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<X, R> Mul<&PolyBase<X, R>> for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

type Output = PolyBase<X, R>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &PolyBase<X, R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<X, R> Mul<&R> for &PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>, PolyBase<X, R>: Clone,

Source§

type Output = PolyBase<X, R>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &R) -> Self::Output

Performs the * operation. Read more
Source§

impl<X, R> Mul<&R> for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

type Output = PolyBase<X, R>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &R) -> Self::Output

Performs the * operation. Read more
Source§

impl<X, R> Mul<PolyBase<X, R>> for &PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>, PolyBase<X, R>: Clone,

Source§

type Output = PolyBase<X, R>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: PolyBase<X, R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<X, R> Mul<R> for &PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>, PolyBase<X, R>: Clone,

Source§

type Output = PolyBase<X, R>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: R) -> Self::Output

Performs the * operation. Read more
Source§

impl<X, R> Mul<R> for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

type Output = PolyBase<X, R>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: R) -> Self::Output

Performs the * operation. Read more
Source§

impl<X, R> Mul for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

type Output = PolyBase<X, R>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: PolyBase<X, R>) -> Self::Output

Performs the * operation. Read more
Source§

impl<X, R> MulAssign<&PolyBase<X, R>> for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

fn mul_assign(&mut self, rhs: &PolyBase<X, R>)

Performs the *= operation. Read more
Source§

impl<X, R> MulAssign<&R> for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

fn mul_assign(&mut self, rhs: &R)

Performs the *= operation. Read more
Source§

impl<X, R> MulAssign<R> for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

fn mul_assign(&mut self, rhs: R)

Performs the *= operation. Read more
Source§

impl<X, R> MulAssign for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

fn mul_assign(&mut self, rhs: PolyBase<X, R>)

Performs the *= operation. Read more
Source§

impl<X, R> Neg for &PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

type Output = PolyBase<X, R>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<X, R> Neg for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

type Output = PolyBase<X, R>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<X, R> One for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

fn one() -> Self

Returns the multiplicative identity element of Self, 1. Read more
Source§

fn is_one(&self) -> bool

Returns true if self is equal to the multiplicative identity. Read more
Source§

fn set_one(&mut self)

Sets self to the multiplicative identity element of Self, 1.
Source§

impl<X, R> PartialEq for PolyBase<X, R>
where X: Mono + PartialEq, R: Ring + PartialEq, for<'x> &'x R: RingOps<R>,

Source§

fn eq(&self, other: &PolyBase<X, R>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<X, R> Pow<i32> for &PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

type Output = PolyBase<X, R>

The result after applying the operator.
Source§

fn pow(self, n: i32) -> Self::Output

Returns self to the power rhs. Read more
Source§

impl<X, R> Pow<i64> for &PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

type Output = PolyBase<X, R>

The result after applying the operator.
Source§

fn pow(self, n: i64) -> Self::Output

Returns self to the power rhs. Read more
Source§

impl<X, R> Pow<isize> for &PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

type Output = PolyBase<X, R>

The result after applying the operator.
Source§

fn pow(self, n: isize) -> Self::Output

Returns self to the power rhs. Read more
Source§

impl<X, R> Pow<u32> for &PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

type Output = PolyBase<X, R>

The result after applying the operator.
Source§

fn pow(self, n: u32) -> Self::Output

Returns self to the power rhs. Read more
Source§

impl<X, R> Pow<u64> for &PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

type Output = PolyBase<X, R>

The result after applying the operator.
Source§

fn pow(self, n: u64) -> Self::Output

Returns self to the power rhs. Read more
Source§

impl<X, R> Pow<usize> for &PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

type Output = PolyBase<X, R>

The result after applying the operator.
Source§

fn pow(self, n: usize) -> Self::Output

Returns self to the power rhs. Read more
Source§

impl<const X: char, R> Rem<&PolyBase<Var<X, usize>, R>> for &Poly<X, R>
where R: Field, for<'x> &'x R: FieldOps<R>, Poly<X, R>: Clone,

Source§

type Output = PolyBase<Var<X, usize>, R>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &Poly<X, R>) -> Self::Output

Performs the % operation. Read more
Source§

impl<const X: char, R> Rem<&PolyBase<Var<X, usize>, R>> for Poly<X, R>
where R: Field, for<'x> &'x R: FieldOps<R>,

Source§

type Output = PolyBase<Var<X, usize>, R>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &Poly<X, R>) -> Self::Output

Performs the % operation. Read more
Source§

impl<const X: char, R> Rem<PolyBase<Var<X, usize>, R>> for &Poly<X, R>
where R: Field, for<'x> &'x R: FieldOps<R>, Poly<X, R>: Clone,

Source§

type Output = PolyBase<Var<X, usize>, R>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Poly<X, R>) -> Self::Output

Performs the % operation. Read more
Source§

impl<const X: char, R> RemAssign<&PolyBase<Var<X, usize>, R>> for Poly<X, R>
where R: Field, for<'x> &'x R: FieldOps<R>, Poly<X, R>: Default,

Source§

fn rem_assign(&mut self, rhs: &Poly<X, R>)

Performs the %= operation. Read more
Source§

impl<X, R> Ring for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

fn inv(&self) -> Option<Self>

Source§

fn is_unit(&self) -> bool

Source§

fn normalizing_unit(&self) -> Self

Source§

fn from_sign(s: Sign) -> Self

Source§

fn normalized(&self) -> Self

Source§

fn into_normalized(self) -> Self

Source§

fn is_pm_one(&self) -> bool

Source§

fn c_weight(&self) -> f64

Source§

impl<X, R> Sub<&PolyBase<X, R>> for &PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>, PolyBase<X, R>: Clone,

Source§

type Output = PolyBase<X, R>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &PolyBase<X, R>) -> Self::Output

Performs the - operation. Read more
Source§

impl<X, R> Sub<&PolyBase<X, R>> for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

type Output = PolyBase<X, R>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &PolyBase<X, R>) -> Self::Output

Performs the - operation. Read more
Source§

impl<X, R> Sub<PolyBase<X, R>> for &PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>, PolyBase<X, R>: Clone,

Source§

type Output = PolyBase<X, R>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: PolyBase<X, R>) -> Self::Output

Performs the - operation. Read more
Source§

impl<X, R> Sub for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

type Output = PolyBase<X, R>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: PolyBase<X, R>) -> Self::Output

Performs the - operation. Read more
Source§

impl<X, R> SubAssign<&PolyBase<X, R>> for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

fn sub_assign(&mut self, rhs: &PolyBase<X, R>)

Performs the -= operation. Read more
Source§

impl<X, R> SubAssign for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

fn sub_assign(&mut self, rhs: PolyBase<X, R>)

Performs the -= operation. Read more
Source§

impl<X, R> Zero for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

fn zero() -> Self

Returns the additive identity element of Self, 0. Read more
Source§

fn is_zero(&self) -> bool

Returns true if self is equal to the additive identity.
Source§

fn set_zero(&mut self)

Sets self to the additive identity element of Self, 0.
Source§

impl<X, R> AddGrp for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

impl<X, R> AddGrpOps<PolyBase<X, R>> for &PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

impl<X, R> AddGrpOps for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

impl<X, R> AddMonOps<PolyBase<X, R>> for &PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

impl<X, R> AddMonOps for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

impl<X, R> Eq for PolyBase<X, R>
where X: Mono + Eq, R: Ring + Eq, for<'x> &'x R: RingOps<R>,

Source§

impl<const X: char, R> EucRingOps<PolyBase<Var<X, usize>, R>> for &Poly<X, R>
where R: Field, for<'x> &'x R: FieldOps<R>,

Source§

impl<X, R> MonOps<PolyBase<X, R>> for &PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

impl<X, R> MonOps for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

impl<X, R> RingOps<PolyBase<X, R>> for &PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

impl<X, R> RingOps for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Source§

impl<X, R> StructuralPartialEq for PolyBase<X, R>
where X: Mono, R: Ring, for<'x> &'x R: RingOps<R>,

Auto Trait Implementations§

§

impl<X, R> Freeze for PolyBase<X, R>
where &'x R: for<'x> Sized, R: Freeze, X: Freeze,

§

impl<X, R> RefUnwindSafe for PolyBase<X, R>
where &'x R: for<'x> Sized, R: RefUnwindSafe, X: RefUnwindSafe,

§

impl<X, R> Send for PolyBase<X, R>
where &'x R: for<'x> Sized,

§

impl<X, R> Sync for PolyBase<X, R>
where &'x R: for<'x> Sized,

§

impl<X, R> Unpin for PolyBase<X, R>
where &'x R: for<'x> Sized, R: Unpin, X: Unpin,

§

impl<X, R> UnwindSafe for PolyBase<X, R>
where &'x R: for<'x> Sized, R: UnwindSafe, X: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneAnd for T
where T: Clone,

Source§

fn clone_and<F>(&self, f: F) -> Self
where F: FnOnce(&mut Self),

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, Rhs> PowMod2<Rhs> for T
where T: One, Rhs: IsEven,

Source§

fn pow_mod2(self, rhs: Rhs) -> Self

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ElemBase for T
where T: Default + PartialEq + Eq + Clone + Send + Sync + Display + Debug + 'static,

Source§

impl<T, Rhs> NumAssignOps<Rhs> for T
where T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,

Source§

impl<T, Rhs, Output> NumOps<Rhs, Output> for T
where T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,

Source§

impl<T, Base> RefNum<Base> for T
where T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>,