pub enum BinaryOperator {
Show 20 variants
Exponent,
Multiply,
Divide,
Modulo,
Add,
Subtract,
LeftShift,
RightShift,
LessThan,
LessThanOrEqual,
GreaterThan,
GreaterThanOrEqual,
Equal,
NotEqual,
BitwiseAnd,
BitwiseXor,
BitwiseOr,
LogicalAnd,
LogicalOr,
Pipe,
}Variants§
Exponent
Exponentiation operator **
Multiply
Multiplication operator *
Divide
Division operator /
Modulo
Modulus operator %
Add
Add operator +
Subtract
Subtract operator -
LeftShift
Left shift operator <<
RightShift
Right shift operator >>
LessThan
Less than operator <
LessThanOrEqual
Less than or equal operator <=
GreaterThan
Greater than operator >
GreaterThanOrEqual
Greater than or equal operator >=
Equal
Equality operator ==
NotEqual
Not equal operator !=
BitwiseAnd
Bitwise AND operator &
BitwiseXor
Bitwise XOR operator ^
BitwiseOr
Bitwise OR operator |
LogicalAnd
Logical AND operator &&
LogicalOr
Logical OR operator ||
Pipe
Pipe operator |>
Implementations§
Source§impl BinaryOperator
impl BinaryOperator
pub fn precedence(&self) -> u8
pub fn associativity(&self) -> Associativity
Trait Implementations§
Source§impl Clone for BinaryOperator
impl Clone for BinaryOperator
Source§fn clone(&self) -> BinaryOperator
fn clone(&self) -> BinaryOperator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BinaryOperator
impl Debug for BinaryOperator
Source§impl Display for BinaryOperator
impl Display for BinaryOperator
Source§impl FromStr for BinaryOperator
impl FromStr for BinaryOperator
Source§impl PartialEq for BinaryOperator
impl PartialEq for BinaryOperator
impl Copy for BinaryOperator
impl Eq for BinaryOperator
impl StructuralPartialEq for BinaryOperator
Auto Trait Implementations§
impl Freeze for BinaryOperator
impl RefUnwindSafe for BinaryOperator
impl Send for BinaryOperator
impl Sync for BinaryOperator
impl Unpin for BinaryOperator
impl UnwindSafe for BinaryOperator
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