pub enum TokenKind {
Show 32 variants
Word,
NumberLiteral,
StringLiteral,
QuotedIdentifier,
Dot,
Comma,
Semicolon,
LParen,
RParen,
Star,
Plus,
Minus,
Slash,
Percent,
Eq,
Neq,
Lt,
Gt,
LtEq,
GtEq,
Concat,
ColonColon,
AtSign,
Colon,
LBracket,
RBracket,
Whitespace,
Newline,
LineComment,
BlockComment,
Placeholder,
Eof,
}Expand description
Classification of tokens.
Variants§
Word
An unquoted word (keyword or identifier — distinguished later by dialect).
NumberLiteral
StringLiteral
Single-quoted string: ‘hello’
QuotedIdentifier
Quoted identifier: “col”, [col], col
Dot
Comma
Semicolon
LParen
RParen
Star
Plus
Minus
Slash
Percent
Eq
Neq
Lt
Gt
LtEq
GtEq
Concat
ColonColon
AtSign
Colon
LBracket
RBracket
Whitespace
Newline
LineComment
BlockComment
Placeholder
Parameter placeholder: :name, $1, ?
Eof
End of 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 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