pub enum BinOp {
Show 13 variants
Add,
Sub,
Mul,
Div,
Mod,
Eq,
Ne,
Lt,
Le,
Gt,
Ge,
And,
Or,
}Expand description
Binary operators.
Variants§
Add
Arithmetic addition. Numeric operands only.
Sub
Arithmetic subtraction.
Mul
Arithmetic multiplication.
Div
Arithmetic division. Integer division rejects zero divisors.
Mod
Arithmetic modulo. Integer only; rejects zero divisors.
Eq
Equality. Same-kind operands.
Ne
Inequality.
Lt
Less than. Numeric.
Le
Less than or equal. Numeric.
Gt
Greater than. Numeric.
Ge
Greater than or equal. Numeric.
And
Logical AND. Boolean operands.
Or
Logical OR. Boolean operands.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BinOp
impl<'de> Deserialize<'de> for BinOp
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 UnsafeUnpin 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.