pub enum Precedence {
Show 21 variants
Min,
MinTypMax,
Concatenation,
Assignment,
Implication,
Ternary,
LogicOr,
LogicAnd,
BitOr,
BitXor,
BitAnd,
Equality,
Relational,
Shift,
Add,
Mul,
Pow,
Unary,
Postfix,
Scope,
Max,
}Expand description
Expression precedence. Note that a few kinds of expression are right-associative rather than the default left-associative.
Variants§
Min
MinTypMax
Concatenation
Assignment
Implication
Ternary
LogicOr
LogicAnd
BitOr
BitXor
BitAnd
Equality
Relational
Shift
Add
Mul
Pow
Unary
Postfix
Scope
Max
Trait Implementations§
Source§impl Clone for Precedence
impl Clone for Precedence
Source§fn clone(&self) -> Precedence
fn clone(&self) -> Precedence
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 Precedence
impl Debug for Precedence
Source§impl Ord for Precedence
impl Ord for Precedence
Source§fn cmp(&self, other: &Precedence) -> Ordering
fn cmp(&self, other: &Precedence) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Precedence
impl PartialEq for Precedence
Source§impl PartialOrd for Precedence
impl PartialOrd for Precedence
impl Copy for Precedence
impl Eq for Precedence
impl StructuralPartialEq for Precedence
Auto Trait Implementations§
impl Freeze for Precedence
impl RefUnwindSafe for Precedence
impl Send for Precedence
impl Sync for Precedence
impl Unpin for Precedence
impl UnwindSafe for Precedence
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