pub enum MathOperator {
Add,
Equal,
Mul,
Not,
Sub,
}
Expand description
Frequently used mathematical operators.
Variants§
Add
Addition of two numbers (a + b
).
Equal
Equivalence of two numbers (a == b
).
Mul
Multiplication of two numbers (a * b
)
Not
Negation of one number (-a
).
Sub
Subtraction of two numbers (a - b
).
Trait Implementations§
Source§impl Debug for MathOperator
impl Debug for MathOperator
Source§impl PartialEq for MathOperator
impl PartialEq for MathOperator
impl Eq for MathOperator
impl StructuralPartialEq for MathOperator
Auto Trait Implementations§
impl Freeze for MathOperator
impl RefUnwindSafe for MathOperator
impl Send for MathOperator
impl Sync for MathOperator
impl Unpin for MathOperator
impl UnwindSafe for MathOperator
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