#[repr(C)]pub enum Precedence {
Show 35 variants
Lowest = 0,
LowLogicalOr = 1,
LowLogicalXor = 2,
LowLogicalAnd = 3,
Print = 4,
Yield = 5,
YieldFrom = 6,
IncDec = 7,
KeyOr = 8,
KeyXor = 9,
KeyAnd = 10,
Assignment = 11,
ElvisOrConditional = 12,
NullCoalesce = 13,
Or = 14,
And = 15,
BitwiseOr = 16,
BitwiseXor = 17,
BitwiseAnd = 18,
Equality = 19,
Comparison = 20,
Concat = 21,
Pipe = 22,
BitShift = 23,
AddSub = 24,
MulDivMod = 25,
Bang = 26,
Instanceof = 27,
Prefix = 28,
Pow = 29,
Clone = 30,
CallDim = 31,
New = 32,
ArrayDim = 33,
ObjectAccess = 34,
}Variants§
Lowest = 0
LowLogicalOr = 1
LowLogicalXor = 2
LowLogicalAnd = 3
Print = 4
Yield = 5
YieldFrom = 6
IncDec = 7
KeyOr = 8
KeyXor = 9
KeyAnd = 10
Assignment = 11
ElvisOrConditional = 12
NullCoalesce = 13
Or = 14
And = 15
BitwiseOr = 16
BitwiseXor = 17
BitwiseAnd = 18
Equality = 19
Comparison = 20
Concat = 21
Pipe = 22
BitShift = 23
AddSub = 24
MulDivMod = 25
Bang = 26
Instanceof = 27
Prefix = 28
Pow = 29
Clone = 30
CallDim = 31
New = 32
ArrayDim = 33
ObjectAccess = 34
Implementations§
Source§impl Precedence
impl Precedence
pub const fn infix(kind: &TokenKind) -> Precedence
pub const fn postfix(kind: &TokenKind) -> Self
pub const 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 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<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more