pub enum BinaryOp {
Show 19 variants
Add,
Sub,
Mul,
Div,
Mod,
Pow,
Max,
Min,
Eq,
Ne,
Lt,
Le,
Gt,
Ge,
And,
Or,
Xor,
Shl,
Shr,
}Expand description
Binary operations.
Variants§
Add
Addition.
Sub
Subtraction.
Mul
Multiplication.
Div
Division.
Mod
Modulo.
Pow
Power.
Max
Maximum.
Min
Minimum.
Eq
Equality.
Ne
Not equal.
Lt
Less than.
Le
Less than or equal.
Gt
Greater than.
Ge
Greater than or equal.
And
Bitwise and.
Or
Bitwise or.
Xor
Bitwise xor.
Shl
Left shift.
Shr
Right shift.
Trait Implementations§
impl Copy for BinaryOp
Source§impl<'de> Deserialize<'de> for BinaryOp
impl<'de> Deserialize<'de> for BinaryOp
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 Eq for BinaryOp
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 UnsafeUnpin 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