#[non_exhaustive]
#[repr(u16)]
pub enum TokenType {
Show 167 variants TK_EOF, TK_SEMI, TK_EXPLAIN, TK_QUERY, TK_PLAN, TK_BEGIN, TK_TRANSACTION, TK_DEFERRED, TK_IMMEDIATE, TK_EXCLUSIVE, TK_COMMIT, TK_END, TK_ROLLBACK, TK_SAVEPOINT, TK_RELEASE, TK_TO, TK_TABLE, TK_CREATE, TK_IF, TK_NOT, TK_EXISTS, TK_TEMP, TK_LP, TK_RP, TK_AS, TK_COMMA, TK_WITHOUT, TK_ABORT, TK_ACTION, TK_AFTER, TK_ANALYZE, TK_ASC, TK_ATTACH, TK_BEFORE, TK_BY, TK_CASCADE, TK_CAST, TK_CONFLICT, TK_DATABASE, TK_DESC, TK_DETACH, TK_EACH, TK_FAIL, TK_OR, TK_AND, TK_IS, TK_MATCH, TK_LIKE_KW, TK_BETWEEN, TK_IN, TK_ISNULL, TK_NOTNULL, TK_NE, TK_EQ, TK_GT, TK_LE, TK_LT, TK_GE, TK_ESCAPE, TK_ID, TK_COLUMNKW, TK_DO, TK_FOR, TK_IGNORE, TK_INITIALLY, TK_INSTEAD, TK_NO, TK_KEY, TK_OF, TK_OFFSET, TK_PRAGMA, TK_RAISE, TK_RECURSIVE, TK_REPLACE, TK_RESTRICT, TK_ROW, TK_ROWS, TK_TRIGGER, TK_VACUUM, TK_VIEW, TK_VIRTUAL, TK_WITH, TK_NULLS, TK_FIRST, TK_LAST, TK_CURRENT, TK_FOLLOWING, TK_PARTITION, TK_PRECEDING, TK_RANGE, TK_UNBOUNDED, TK_EXCLUDE, TK_GROUPS, TK_OTHERS, TK_TIES, TK_GENERATED, TK_ALWAYS, TK_MATERIALIZED, TK_REINDEX, TK_RENAME, TK_CTIME_KW, TK_ANY, TK_BITAND, TK_BITOR, TK_LSHIFT, TK_RSHIFT, TK_PLUS, TK_MINUS, TK_STAR, TK_SLASH, TK_REM, TK_CONCAT, TK_PTR, TK_COLLATE, TK_BITNOT, TK_ON, TK_INDEXED, TK_STRING, TK_JOIN_KW, TK_CONSTRAINT, TK_DEFAULT, TK_NULL, TK_PRIMARY, TK_UNIQUE, TK_CHECK, TK_REFERENCES, TK_AUTOINCR, TK_INSERT, TK_DELETE, TK_UPDATE, TK_SET, TK_DEFERRABLE, TK_FOREIGN, TK_DROP, TK_UNION, TK_ALL, TK_EXCEPT, TK_INTERSECT, TK_SELECT, TK_VALUES, TK_DISTINCT, TK_DOT, TK_FROM, TK_JOIN, TK_USING, TK_ORDER, TK_GROUP, TK_HAVING, TK_LIMIT, TK_WHERE, TK_RETURNING, TK_INTO, TK_NOTHING, TK_BLOB, TK_FLOAT, TK_INTEGER, TK_VARIABLE, TK_CASE, TK_WHEN, TK_THEN, TK_ELSE, TK_INDEX, TK_ALTER, TK_ADD, TK_WINDOW, TK_OVER, TK_FILTER,
}
Expand description

Token classes

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

TK_EOF

§

TK_SEMI

§

TK_EXPLAIN

§

TK_QUERY

§

TK_PLAN

§

TK_BEGIN

§

TK_TRANSACTION

§

TK_DEFERRED

§

TK_IMMEDIATE

§

TK_EXCLUSIVE

§

TK_COMMIT

§

TK_END

§

TK_ROLLBACK

§

TK_SAVEPOINT

§

TK_RELEASE

§

TK_TO

§

TK_TABLE

§

TK_CREATE

§

TK_IF

§

TK_NOT

§

TK_EXISTS

§

TK_TEMP

§

TK_LP

§

TK_RP

§

TK_AS

§

TK_COMMA

§

TK_WITHOUT

§

TK_ABORT

§

TK_ACTION

§

TK_AFTER

§

TK_ANALYZE

§

TK_ASC

§

TK_ATTACH

§

TK_BEFORE

§

TK_BY

§

TK_CASCADE

§

TK_CAST

§

TK_CONFLICT

§

TK_DATABASE

§

TK_DESC

§

TK_DETACH

§

TK_EACH

§

TK_FAIL

§

TK_OR

§

TK_AND

§

TK_IS

§

TK_MATCH

§

TK_LIKE_KW

§

TK_BETWEEN

§

TK_IN

§

TK_ISNULL

§

TK_NOTNULL

§

TK_NE

§

TK_EQ

§

TK_GT

§

TK_LE

§

TK_LT

§

TK_GE

§

TK_ESCAPE

§

TK_ID

§

TK_COLUMNKW

§

TK_DO

§

TK_FOR

§

TK_IGNORE

§

TK_INITIALLY

§

TK_INSTEAD

§

TK_NO

§

TK_KEY

§

TK_OF

§

TK_OFFSET

§

TK_PRAGMA

§

TK_RAISE

§

TK_RECURSIVE

§

TK_REPLACE

§

TK_RESTRICT

§

TK_ROW

§

TK_ROWS

§

TK_TRIGGER

§

TK_VACUUM

§

TK_VIEW

§

TK_VIRTUAL

§

TK_WITH

§

TK_NULLS

§

TK_FIRST

§

TK_LAST

§

TK_CURRENT

§

TK_FOLLOWING

§

TK_PARTITION

§

TK_PRECEDING

§

TK_RANGE

§

TK_UNBOUNDED

§

TK_EXCLUDE

§

TK_GROUPS

§

TK_OTHERS

§

TK_TIES

§

TK_GENERATED

§

TK_ALWAYS

§

TK_MATERIALIZED

§

TK_REINDEX

§

TK_RENAME

§

TK_CTIME_KW

§

TK_ANY

§

TK_BITAND

§

TK_BITOR

§

TK_LSHIFT

§

TK_RSHIFT

§

TK_PLUS

§

TK_MINUS

§

TK_STAR

§

TK_SLASH

§

TK_REM

§

TK_CONCAT

§

TK_PTR

§

TK_COLLATE

§

TK_BITNOT

§

TK_ON

§

TK_INDEXED

§

TK_STRING

§

TK_JOIN_KW

§

TK_CONSTRAINT

§

TK_DEFAULT

§

TK_NULL

§

TK_PRIMARY

§

TK_UNIQUE

§

TK_CHECK

§

TK_REFERENCES

§

TK_AUTOINCR

§

TK_INSERT

§

TK_DELETE

§

TK_UPDATE

§

TK_SET

§

TK_DEFERRABLE

§

TK_FOREIGN

§

TK_DROP

§

TK_UNION

§

TK_ALL

§

TK_EXCEPT

§

TK_INTERSECT

§

TK_SELECT

§

TK_VALUES

§

TK_DISTINCT

§

TK_DOT

§

TK_FROM

§

TK_JOIN

§

TK_USING

§

TK_ORDER

§

TK_GROUP

§

TK_HAVING

§

TK_LIMIT

§

TK_WHERE

§

TK_RETURNING

§

TK_INTO

§

TK_NOTHING

§

TK_BLOB

§

TK_FLOAT

§

TK_INTEGER

§

TK_VARIABLE

§

TK_CASE

§

TK_WHEN

§

TK_THEN

§

TK_ELSE

§

TK_INDEX

§

TK_ALTER

§

TK_ADD

§

TK_WINDOW

§

TK_OVER

§

TK_FILTER

Implementations§

source§

impl TokenType

source

pub const fn as_str(&self) -> Option<&'static str>

Trait Implementations§

source§

impl Clone for TokenType

source§

fn clone(&self) -> TokenType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for TokenType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq<TokenType> for TokenType

source§

fn eq(&self, other: &TokenType) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<TokenType> for TokenType

source§

fn partial_cmp(&self, other: &TokenType) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Copy for TokenType

source§

impl Eq for TokenType

source§

impl StructuralEq for TokenType

source§

impl StructuralPartialEq for TokenType

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.