pub struct Lc<X, R>{ /* private fields */ }Implementations§
Source§impl<X, R> Lc<X, R>
impl<X, R> Lc<X, R>
pub fn new() -> Self
pub fn clean(&mut self)
pub fn nterms(&self) -> usize
pub fn any_term(&self) -> Option<(&X, &R)>
pub fn gens(&self) -> impl Iterator<Item = &X>
pub fn is_gen(&self) -> bool
pub fn as_gen(&self) -> Option<X>
pub fn coeff(&self, x: &X) -> &R
pub fn iter(&self) -> impl Iterator<Item = (&X, &R)>
pub fn map<Y, S, F>(&self, f: F) -> Lc<Y, S>
pub fn into_map<Y, S, F>(self, f: F) -> Lc<Y, S>
pub fn map_coeffs<S, F>(&self, f: F) -> Lc<X, S>
pub fn into_map_coeffs<S, F>(self, f: F) -> Lc<X, S>
pub fn map_gens<Y, F>(&self, f: F) -> Lc<Y, R>
pub fn into_map_gens<Y, F>(self, f: F) -> Lc<Y, R>
pub fn filter_gens<F>(&self, f: F) -> Self
pub fn into_filter_gens<F>(self, f: F) -> Self
pub fn apply<F>(&self, f: F) -> Self
pub fn sort_terms_by<F>(&self, cmp: F) -> impl Iterator<Item = (&X, &R)>
pub fn combine<Y, Z, F>(&self, other: &Lc<Y, R>, x_map: F) -> Lc<Z, R>
pub fn to_string_by<F>(&self, cmp: F, descending: bool) -> String
Trait Implementations§
Source§impl<X, R> AddAssign<&Lc<X, R>> for Lc<X, R>
impl<X, R> AddAssign<&Lc<X, R>> for Lc<X, R>
Source§fn add_assign(&mut self, rhs: &Self)
fn add_assign(&mut self, rhs: &Self)
Performs the
+= operation. Read moreSource§impl<X, R> AddAssign for Lc<X, R>
impl<X, R> AddAssign for Lc<X, R>
Source§fn add_assign(&mut self, rhs: Lc<X, R>)
fn add_assign(&mut self, rhs: Lc<X, R>)
Performs the
+= operation. Read moreSource§impl<X, R> AddMon for Lc<X, R>
impl<X, R> AddMon for Lc<X, R>
fn sum<A, I>(itr: I) -> Selfwhere
Self: AddAssign<A>,
I: IntoIterator<Item = A>,
Source§impl<X, R> FromIterator<(X, R)> for Lc<X, R>
impl<X, R> FromIterator<(X, R)> for Lc<X, R>
Source§impl<X, R> IntoIterator for Lc<X, R>
impl<X, R> IntoIterator for Lc<X, R>
Source§impl<X, R> MulAssign<&Lc<X, R>> for Lc<X, R>
impl<X, R> MulAssign<&Lc<X, R>> for Lc<X, R>
Source§fn mul_assign(&mut self, rhs: &Lc<X, R>)
fn mul_assign(&mut self, rhs: &Lc<X, R>)
Performs the
*= operation. Read moreSource§impl<X, R> MulAssign<&R> for Lc<X, R>
impl<X, R> MulAssign<&R> for Lc<X, R>
Source§fn mul_assign(&mut self, rhs: &R)
fn mul_assign(&mut self, rhs: &R)
Performs the
*= operation. Read moreSource§impl<X, R> MulAssign<R> for Lc<X, R>
impl<X, R> MulAssign<R> for Lc<X, R>
Source§fn mul_assign(&mut self, rhs: R)
fn mul_assign(&mut self, rhs: R)
Performs the
*= operation. Read moreSource§impl<X, R> MulAssign for Lc<X, R>
impl<X, R> MulAssign for Lc<X, R>
Source§fn mul_assign(&mut self, rhs: Lc<X, R>)
fn mul_assign(&mut self, rhs: Lc<X, R>)
Performs the
*= operation. Read moreSource§impl<X, R> SubAssign<&Lc<X, R>> for Lc<X, R>
impl<X, R> SubAssign<&Lc<X, R>> for Lc<X, R>
Source§fn sub_assign(&mut self, rhs: &Self)
fn sub_assign(&mut self, rhs: &Self)
Performs the
-= operation. Read moreSource§impl<X, R> SubAssign for Lc<X, R>
impl<X, R> SubAssign for Lc<X, R>
Source§fn sub_assign(&mut self, rhs: Lc<X, R>)
fn sub_assign(&mut self, rhs: Lc<X, R>)
Performs the
-= operation. Read moreimpl<X, R> AddGrp for Lc<X, R>
impl<X, R> AddGrpOps<Lc<X, R>> for &Lc<X, R>
impl<X, R> AddGrpOps for Lc<X, R>
impl<X, R> AddMonOps<Lc<X, R>> for &Lc<X, R>
impl<X, R> AddMonOps for Lc<X, R>
impl<X, R> Eq for Lc<X, R>
impl<X, R> RModOps<R, Lc<X, R>> for &Lc<X, R>
impl<X, R> RModOps<R, Lc<X, R>> for Lc<X, R>
impl<X, R> StructuralPartialEq for Lc<X, R>
Auto Trait Implementations§
impl<X, R> Freeze for Lc<X, R>
impl<X, R> RefUnwindSafe for Lc<X, R>
impl<X, R> Send for Lc<X, R>
impl<X, R> Sync for Lc<X, R>
impl<X, R> Unpin for Lc<X, R>
impl<X, R> UnwindSafe for Lc<X, R>
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> 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