pub enum Precedence {
Show 33 variants
Lowest,
LowLogicalOr,
LowLogicalXor,
LowLogicalAnd,
Print,
Yield,
YieldFrom,
IncDec,
KeyOr,
KeyXor,
KeyAnd,
Assignment,
ElvisOrConditional,
NullCoalesce,
Or,
And,
BitwiseOr,
BitwiseXor,
BitwiseAnd,
Equality,
Comparison,
Concat,
BitShift,
AddSub,
MulDivMod,
Bang,
Instanceof,
Prefix,
Pow,
Clone,
CallDim,
New,
ObjectAccess,
}Variants§
Lowest
LowLogicalOr
LowLogicalXor
LowLogicalAnd
Yield
YieldFrom
IncDec
KeyOr
KeyXor
KeyAnd
Assignment
ElvisOrConditional
NullCoalesce
Or
And
BitwiseOr
BitwiseXor
BitwiseAnd
Equality
Comparison
Concat
BitShift
AddSub
MulDivMod
Bang
Instanceof
Prefix
Pow
Clone
CallDim
New
ObjectAccess
Implementations§
Source§impl Precedence
impl Precedence
pub fn infix(kind: &TokenKind) -> Precedence
pub fn postfix(kind: &TokenKind) -> Self
pub fn associativity(&self) -> Option<Associativity>
Trait Implementations§
Source§impl Clone for Precedence
impl Clone for Precedence
Source§fn clone(&self) -> Precedence
fn clone(&self) -> Precedence
Returns a copy 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<'de> Deserialize<'de> for Precedence
impl<'de> Deserialize<'de> for Precedence
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 Display for Precedence
impl Display for Precedence
Source§impl Hash for Precedence
impl Hash 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
Source§impl Serialize for Precedence
impl Serialize 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