pub enum TokenKind {
Show 38 variants
LBracket,
RBracket,
LParen,
RParen,
Colon,
Dot,
Comma,
Star,
Equal,
NotEqual,
LessThan,
LessThanOrEqual,
GreaterThan,
GreaterThanOrEqual,
And,
Or,
Not,
FollowedBy,
Like,
Matches,
In,
IsSubset,
IsSuperset,
Exists,
Within,
Repeats,
Seconds,
Times,
Start,
Stop,
Identifier(String),
String(String),
Integer(i64),
Float(f64),
Boolean(bool),
Timestamp(String),
Binary(String),
Hex(String),
}Expand description
The kind of a lexed token.
Variants§
LBracket
[
RBracket
]
LParen
(
RParen
)
Colon
:
Dot
.
Comma
,
Star
*
Equal
=
NotEqual
!= or <>
LessThan
<
LessThanOrEqual
<=
GreaterThan
>
GreaterThanOrEqual
>=
And
The AND keyword.
Or
The OR keyword.
Not
The NOT keyword.
FollowedBy
The FOLLOWEDBY keyword.
Like
The LIKE keyword.
Matches
The MATCHES keyword.
In
The IN keyword.
IsSubset
The ISSUBSET keyword.
IsSuperset
The ISSUPERSET keyword.
Exists
The EXISTS keyword.
Within
The WITHIN keyword.
Repeats
The REPEATS keyword.
Seconds
The SECONDS keyword.
Times
The TIMES keyword.
Start
The START keyword.
Stop
The STOP keyword.
Identifier(String)
A bare identifier (object type or property name).
String(String)
A single-quoted string literal (unescaped contents).
Integer(i64)
An integer literal.
Float(f64)
A floating-point literal.
Boolean(bool)
A true/false literal.
Timestamp(String)
A t'...' timestamp literal (inner string).
Binary(String)
A b'...' base64 literal (inner string).
Hex(String)
An h'...' hex literal (inner string).
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