pub struct Monomial { /* private fields */ }Expand description
A monomial is a product of variables with their powers.
Example: x^2 * y^3 is represented as {0: 2, 1: 3} The constant monomial (1) is represented as an empty map.
Uses BTreeMap for deterministic ordering (canonical form).
Implementations§
Trait Implementations§
Source§impl Ord for Monomial
impl Ord for Monomial
Source§impl PartialOrd for Monomial
impl PartialOrd for Monomial
impl Eq for Monomial
impl StructuralPartialEq for Monomial
Auto Trait Implementations§
impl Freeze for Monomial
impl RefUnwindSafe for Monomial
impl Send for Monomial
impl Sync for Monomial
impl Unpin for Monomial
impl UnwindSafe for Monomial
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