pub enum TokenKind {
Symbol(Symbol),
Number,
String,
Comment,
Whitespace,
Ident,
Eof,
}Expand description
A token kind.
Variants§
Symbol(Symbol)
A symbol.
Number
A number literal.
String
A string literal.
Comment
A comment.
Whitespace
A whitespace sequence.
Ident
An identifier.
Eof
The end of the file.
Implementations§
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