pub enum TokenKind {
Show 36 variants
Integer(i64),
Float(f64),
String(String),
Blob(Vec<u8>),
Identifier(String),
Keyword(Keyword),
Plus,
Minus,
Star,
Slash,
Percent,
Eq,
NotEq,
Lt,
LtEq,
Gt,
GtEq,
Concat,
BitAnd,
BitOr,
BitNot,
LeftShift,
RightShift,
LeftParen,
RightParen,
LeftBracket,
RightBracket,
Comma,
Semicolon,
Dot,
Colon,
DoubleColon,
Question,
At,
Eof,
Error(String),
}Expand description
The kind of token.
Variants§
Integer(i64)
Integer literal (e.g., 42)
Float(f64)
Float literal (e.g., 3.14)
String(String)
String literal (e.g., ‘hello’)
Blob(Vec<u8>)
Blob literal (e.g., X’1234’)
Identifier(String)
Identifier (e.g., column_name)
Keyword(Keyword)
SQL keyword
Plus
Minus
Star
Slash
/
Percent
%
Eq
=
NotEq
!= or <>
Lt
<
LtEq
<=
Gt
GtEq
=
Concat
||
BitAnd
&
BitOr
|
BitNot
~
LeftShift
<<
RightShift
LeftParen
(
RightParen
)
LeftBracket
[
RightBracket
]
Comma
,
Semicolon
;
Dot
.
Colon
:
DoubleColon
::
Question
?
At
@
Eof
End of input
Error(String)
Invalid/unknown token
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 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