#[repr(C)]pub enum TokenKind {
Comment = 4,
Identifier = 2,
Keyword = 1,
Literal = 3,
Punctuation = 0,
}
Expand description
Indicates the categorization of a token.
Variants§
Comment = 4
A comment token.
Identifier = 2
An identifier token.
Keyword = 1
A keyword token.
Literal = 3
A literal token.
Punctuation = 0
A puncuation token.
Trait Implementations§
impl Copy for TokenKind
impl Eq for TokenKind
impl StructuralPartialEq for TokenKind
Auto Trait Implementations§
impl Freeze for TokenKind
impl RefUnwindSafe for TokenKind
impl Send for TokenKind
impl Sync for TokenKind
impl Unpin for TokenKind
impl UnwindSafe for TokenKind
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