pub enum BinaryOp {
Show 13 variants
Equal,
NotEqual,
Less,
LessEqual,
Greater,
GreaterEqual,
And,
Or,
Add,
Subtract,
Multiply,
Divide,
Modulo,
}Expand description
Represents a binary operator
Supports all common comparison, arithmetic, and logical operators.
Variants§
Equal
Equality (==)
NotEqual
Inequality (!=)
Less
Less than (<)
LessEqual
Less than or equal (<=)
Greater
Greater than (>)
GreaterEqual
Greater than or equal (>=)
And
Logical AND (&&)
Or
Logical OR (||)
Add
Addition (+)
Subtract
Subtraction (-)
Multiply
Multiplication (*)
Divide
Division (/)
Modulo
Modulo (%)
Trait Implementations§
impl Copy for BinaryOp
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 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