pub enum Operator {
Show 17 variants
Add,
Subtract,
Multiply,
Divide,
Modulo,
Power,
And,
Or,
Not,
Assignment,
Equal,
NotEqual,
Less,
Greater,
LessOrEqual,
GreaterOrEqual,
Arrow,
}Variants§
Add
Subtract
Multiply
Divide
Modulo
Power
And
Or
Not
Assignment
Equal
NotEqual
Less
Greater
LessOrEqual
GreaterOrEqual
Arrow
Implementations§
source§impl Operator
impl Operator
pub const fn is_binary(self) -> bool
pub const fn is_unary(self) -> bool
pub const fn is_logical(self) -> bool
pub const fn precedence(self) -> u8
pub const fn associativity(&self) -> Associativity
Trait Implementations§
source§impl PartialEq<Operator> for Operator
impl PartialEq<Operator> for Operator
source§impl PartialOrd<Operator> for Operator
impl PartialOrd<Operator> for Operator
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more