pub enum BinaryOperator {
Show 20 variants
Add,
Subtract,
Multiply,
Divide,
Modulo,
Power,
Equal,
NotEqual,
Less,
LessEqual,
Greater,
GreaterEqual,
And,
Or,
Concat,
BitwiseAnd,
BitwiseOr,
BitwiseXor,
LeftShift,
RightShift,
}Expand description
Binary operators
Variants§
Add
Addition +
Subtract
Subtraction -
Multiply
Multiplication *
Divide
Division /
Modulo
Modulo %
Power
Power **
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 ||
Concat
String concatenation +
BitwiseAnd
Bitwise AND &
BitwiseOr
Bitwise OR |
BitwiseXor
Bitwise XOR ^
LeftShift
Left shift <<
RightShift
Right shift >>
Implementations§
Source§impl BinaryOperator
impl BinaryOperator
Sourcepub fn precedence(&self) -> u8
pub fn precedence(&self) -> u8
Get operator precedence for parsing
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<'de> Deserialize<'de> for BinaryOperator
impl<'de> Deserialize<'de> for BinaryOperator
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
Source§impl PartialEq for BinaryOperator
impl PartialEq for BinaryOperator
Source§impl Serialize for BinaryOperator
impl Serialize 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