pub enum Precedence {
Show 16 variants
Any,
Assign,
Range,
Or,
And,
Compare,
BitOr,
BitAnd,
Shift,
Term,
Factor,
Neg,
Exp,
Factorial,
BitNot,
Not,
}Expand description
The precedence of an operation, in order from lowest precedence (evaluated last) to highest precedence (evaluated first).
Variants§
Any
Any precedence.
Assign
Precedence of assignment (=, +=, -=, *=, /=, %=, ^=, &&=, ||=, &=,
|=, >>=, and <<=).
Range
Precedence of range (.. and ..=).
Or
Precedence of logical or (or).
And
Precedence of logical and (and).
Compare
Precedence of comparisons (>, >=, <, <=, ==, !=, ~==, and ~!=).
BitOr
Precedence of bitwise or (|).
BitAnd
Precedence of bitwise and (&).
Shift
Precedence of bitshifts (<< and >>).
Term
Precedence of addition (+) and subtraction (-), which separate terms.
Factor
Precedence of multiplication (*), division (/), and modulo (%), which separate
factors.
Neg
Precedence of unary subtraction (-).
Exp
Precedence of exponentiation (^).
Factorial
Precedence of factorial (!).
BitNot
Precedence of bitwise not (~).
Not
Precedence of logical not (not).
Trait Implementations§
Source§impl Clone for Precedence
impl Clone for Precedence
Source§fn clone(&self) -> Precedence
fn clone(&self) -> Precedence
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more