pub enum BinaryOp {
Show 22 variants
Add,
Subtract,
Multiply,
Divide,
Remainder,
Exponent,
BitAnd,
BitOr,
BitXor,
ShiftLeft,
ShiftRight,
UnsignedShiftRight,
Equal,
NotEqual,
StrictEqual,
StrictNotEqual,
LessThan,
LessThanOrEqual,
GreaterThan,
GreaterThanOrEqual,
InstanceOf,
In,
}Expand description
Closed set of binary operators. BinaryOp::Add is the formal core’s Add.
Variants§
Add
Subtract
Multiply
Divide
Remainder
Exponent
BitAnd
BitOr
BitXor
ShiftLeft
ShiftRight
UnsignedShiftRight
Equal
NotEqual
StrictEqual
StrictNotEqual
LessThan
LessThanOrEqual
GreaterThan
GreaterThanOrEqual
InstanceOf
In
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 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