pub enum BinaryOp {
Show 16 variants
Add,
Sub,
Mul,
Div,
Mod,
Pow,
Eq,
Ne,
Gt,
Lt,
Ge,
Le,
And,
Or,
Unless,
Atan2,
}Expand description
Binary operators can do logical and arithmetic operations or comparisons.
Variants§
Add
Addition.
Sub
Subtraction.
Mul
Multiplication.
Div
Division.
Mod
Modulo.
Pow
Exponentiation.
Eq
Equal.
Ne
Not equal.
Gt
Greater than.
Lt
Less than.
Ge
Greater than or equal.
Le
Less than or equal.
And
Logical and (intersection).
Or
Logical or (union).
Unless
Logical unless (complement).
Atan2
Arc tangent.
Trait Implementations§
impl StructuralPartialEq for BinaryOp
Auto Trait Implementations§
impl Freeze for BinaryOp
impl RefUnwindSafe for BinaryOp
impl Send for BinaryOp
impl Sync for BinaryOp
impl Unpin for BinaryOp
impl UnwindSafe for BinaryOp
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