pub enum BinOp {
Show 14 variants
Add,
Sub,
Mul,
Div,
Mod,
And,
Or,
Eq,
Lt,
Le,
Ne,
Ge,
Gt,
Is,
}Expand description
Binary operator.
Variants§
Add
The + operator (addition)
Sub
The - operator (subtraction)
Mul
The * operator (multiplication)
Div
The / operator (division)
Mod
The % operator (modulus)
And
The and operator (logical and)
Or
The or operator (logical or)
Eq
The == operator (equality)
Lt
The < operator (less than)
Le
The <= operator (less than or equal to)
Ne
The != operator (not equal to)
Ge
The >= operator (greater than or equal to)
Gt
The > operator (greater than)
Is
The ‘is’ operator (identity comparison)
Implementations§
Trait Implementations§
impl Copy for BinOp
impl Eq for BinOp
impl StructuralPartialEq for BinOp
Auto Trait Implementations§
impl Freeze for BinOp
impl RefUnwindSafe for BinOp
impl Send for BinOp
impl Sync for BinOp
impl Unpin for BinOp
impl UnwindSafe for BinOp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.