pub enum TokenKind {
}Expand description
A lexical token kind.
Variants§
Word(String)
A run of identifier characters ([A-Za-z_][A-Za-z0-9_]*).
Number
A numeric literal. A numeric literal with its source spelling.
String(String)
A string literal (content, unescaped).
Op(String)
An operator token: = == != < <= > >= && || ! + - * / %.
LParen
RParen
Comma
Semi
LBrace
RBrace
Colon
Dot
LBracket
RBracket
Eof
Trait Implementations§
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 UnsafeUnpin 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