pub struct TokenType(pub u32);Expand description
Each token type has a unique ID
Tuple Fields§
§0: u32Trait Implementations§
impl Copy for TokenType
impl Eq for TokenType
Source§impl From<TokenType> for GrammarItem
impl From<TokenType> for GrammarItem
Source§impl From<TokenType> for InternalToken
impl From<TokenType> for InternalToken
Source§impl Ord for TokenType
impl Ord for TokenType
1.21.0 (const: unstable) · 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 PartialOrd for TokenType
impl PartialOrd for TokenType
impl StructuralPartialEq for TokenType
Auto Trait Implementations§
impl Freeze for TokenType
impl RefUnwindSafe for TokenType
impl Send for TokenType
impl Sync for TokenType
impl Unpin for TokenType
impl UnsafeUnpin for TokenType
impl UnwindSafe for TokenType
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