pub struct Mono<Id> { /* private fields */ }Expand description
Represents a type-level, signed dyadic monoterm, eg: 3* a * b^2 * c^3 * 2^(d+e+f+2) -2 * x * 2^y
Implementations§
Trait Implementations§
Source§impl<T: Ord + Clone> AddAssign<Mono<T>> for Dyadic<T>
Addition of dyadic numbers
impl<T: Ord + Clone> AddAssign<Mono<T>> for Dyadic<T>
Addition of dyadic numbers
Source§fn add_assign(&mut self, other: Mono<T>)
fn add_assign(&mut self, other: Mono<T>)
Performs the
+= operation. Read moreSource§impl<T: Ord> MulAssign<Bin<T>> for Mono<T>
Multiplication of monoterms to bin [normalizes]
impl<T: Ord> MulAssign<Bin<T>> for Mono<T>
Multiplication of monoterms to bin [normalizes]
Source§fn mul_assign(&mut self, other: Bin<T>)
fn mul_assign(&mut self, other: Bin<T>)
Performs the
*= operation. Read moreSource§impl<T: Ord + Clone> MulAssign<Mono<T>> for Dyadic<T>
Multiplication of dyadic numbers
impl<T: Ord + Clone> MulAssign<Mono<T>> for Dyadic<T>
Multiplication of dyadic numbers
Source§fn mul_assign(&mut self, other: Mono<T>)
fn mul_assign(&mut self, other: Mono<T>)
Performs the
*= operation. Read moreSource§impl<T: Ord> MulAssign<i32> for Mono<T>
Multiplication of monoterms to integers [normalizes]
impl<T: Ord> MulAssign<i32> for Mono<T>
Multiplication of monoterms to integers [normalizes]
Source§fn mul_assign(&mut self, other: i32)
fn mul_assign(&mut self, other: i32)
Performs the
*= operation. Read moreSource§impl<T: Ord> MulAssign for Mono<T>
Multiplication of monoterms [normalizes]
impl<T: Ord> MulAssign for Mono<T>
Multiplication of monoterms [normalizes]
Source§fn mul_assign(&mut self, other: Self)
fn mul_assign(&mut self, other: Self)
Performs the
*= operation. Read moreSource§impl<T: Ord> Normalizable for Mono<T>
impl<T: Ord> Normalizable for Mono<T>
Source§impl<Id: Ord> Ord for Mono<Id>
impl<Id: Ord> Ord for Mono<Id>
Source§impl<Id: PartialOrd> PartialOrd for Mono<Id>
impl<Id: PartialOrd> PartialOrd for Mono<Id>
Source§impl<'a, D, A, T> Pretty<'a, D, A> for Mono<T>
impl<'a, D, A, T> Pretty<'a, D, A> for Mono<T>
Source§fn pretty(self, allocator: &'a D) -> DocBuilder<'a, D, A>
fn pretty(self, allocator: &'a D) -> DocBuilder<'a, D, A>
Converts
self into a documentSource§impl<T: Ord + Clone> SubAssign<Mono<T>> for Dyadic<T>
Subtraction of dyadic numbers
impl<T: Ord + Clone> SubAssign<Mono<T>> for Dyadic<T>
Subtraction of dyadic numbers
Source§fn sub_assign(&mut self, other: Mono<T>)
fn sub_assign(&mut self, other: Mono<T>)
Performs the
-= operation. Read moreimpl<Id: Eq> Eq for Mono<Id>
impl<Id> StructuralPartialEq for Mono<Id>
Auto Trait Implementations§
impl<Id> Freeze for Mono<Id>
impl<Id> RefUnwindSafe for Mono<Id>where
Id: RefUnwindSafe,
impl<Id> Send for Mono<Id>where
Id: Send,
impl<Id> Sync for Mono<Id>where
Id: Sync,
impl<Id> Unpin for Mono<Id>
impl<Id> UnwindSafe for Mono<Id>where
Id: 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