pub enum BinOpKind {
Show 24 variants
Plus,
Minus,
Multiply,
Divide,
Power,
Modulo,
BitwiseAnd,
BitwiseOr,
BitwiseXor,
ShiftLeft,
ShiftRight,
Equals,
LessThan,
LessThanOrEqual,
GreaterThan,
GreaterThanOrEqual,
And,
Or,
EqualsEquals,
BangEquals,
Increment,
Decrement,
MinusEquals,
PlusEquals,
}Expand description
Enum representing the various binary operators in the language.
Binary operators are used in binary expressions (e.g., a + b).
Variants§
Plus
Addition operator (+).
Minus
Subtraction operator (-).
Multiply
Multiplication operator (*).
Divide
Division operator (/).
Power
Exponentiation operator (**).
Modulo
Modulo operator (%).
BitwiseAnd
Bitwise AND operator (&).
BitwiseOr
Bitwise OR operator (|).
BitwiseXor
Bitwise XOR operator (^).
ShiftLeft
Bitwise shift left operator (<<).
ShiftRight
Bitwise shift right operator (>>).
Equals
Equality operator (==).
LessThan
Less-than operator (<).
LessThanOrEqual
Less-than-or-equal operator (<=).
GreaterThan
Greater-than operator (>).
GreaterThanOrEqual
Greater-than-or-equal operator (>=).
And
Logical AND operator (&&).
Or
Logical OR operator (||).
EqualsEquals
Equality operator (==).
BangEquals
Inequality operator (!=).
Increment
Increment operator (++).
Decrement
Decrement operator (--).
MinusEquals
Subtraction assignment operator (-=).
PlusEquals
Addition assignment operator (+=).
Trait Implementations§
impl Copy for BinOpKind
impl StructuralPartialEq for BinOpKind
Auto Trait Implementations§
impl Freeze for BinOpKind
impl RefUnwindSafe for BinOpKind
impl Send for BinOpKind
impl Sync for BinOpKind
impl Unpin for BinOpKind
impl UnwindSafe for BinOpKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)