pub enum Prec {
Show 19 variants
Min,
Do,
Assign,
Tuple,
Body,
Make,
Logical,
LogOr,
LogAnd,
Compare,
Range,
Binary,
Shift,
Factor,
Term,
Unary,
Project,
Extend,
Max,
}Expand description
Organizes the precedence hierarchy for syntactic elements
Variants§
Min
Do
The Semicolon Operator gets its own precedence level
Assign
An assignment
Tuple
Constructor for a tuple
Body
The body of a function, conditional, etc.
Make
Constructor for a struct
Logical
The conditional of an if or while (which is really an if)
LogOr
The short-circuiting “boolean or” operator
LogAnd
The short-circuiting “boolean and” operator
Compare
Value comparison operators
Range
Constructor for a Range
Binary
Binary/bitwise operators
Shift
Bit-shifting operators
Factor
Addition and Subtraction operators
Term
Multiplication, Division, and Remainder operators
Unary
Negation, Reference, Try
Project
Place-projection operators (*x, x[1], x.a, x.1)
Extend
Call subscripting
Max
Implementations§
Trait Implementations§
Source§impl Ord for Prec
impl Ord for Prec
Source§impl PartialOrd for Prec
impl PartialOrd for Prec
impl Copy for Prec
impl Eq for Prec
impl StructuralPartialEq for Prec
Auto Trait Implementations§
impl Freeze for Prec
impl RefUnwindSafe for Prec
impl Send for Prec
impl Sync for Prec
impl Unpin for Prec
impl UnwindSafe for Prec
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