pub enum NumOp {
Add,
Sub,
Div,
Mul,
Mod,
}
Expand description
A numeric operation between 2 values
Variants
Add
a + b
- Addition
Sub
a - b
- Subtraction
Div
a / b
- Division
Mul
a * b
- Multiplication
Mod
a % b
- Modulus
Trait Implementations
sourceimpl Trace for NumOp
impl Trace for NumOp
sourcefn finalize_glue(&self)
fn finalize_glue(&self)
Runs Finalize::finalize() on this object and all
contained subobjects Read more
impl StructuralPartialEq for NumOp
Auto Trait Implementations
impl RefUnwindSafe for NumOp
impl Send for NumOp
impl Sync for NumOp
impl Unpin for NumOp
impl UnwindSafe for NumOp
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more