Enum TokenType

Source
#[non_exhaustive]
#[repr(u16)]
pub enum TokenType {
Show 167 variants TK_EOF = 0, TK_SEMI = 1, TK_EXPLAIN = 2, TK_QUERY = 3, TK_PLAN = 4, TK_BEGIN = 5, TK_TRANSACTION = 6, TK_DEFERRED = 7, TK_IMMEDIATE = 8, TK_EXCLUSIVE = 9, TK_COMMIT = 10, TK_END = 11, TK_ROLLBACK = 12, TK_SAVEPOINT = 13, TK_RELEASE = 14, TK_TO = 15, TK_TABLE = 16, TK_CREATE = 17, TK_IF = 18, TK_NOT = 19, TK_EXISTS = 20, TK_TEMP = 21, TK_LP = 22, TK_RP = 23, TK_AS = 24, TK_COMMA = 25, TK_WITHOUT = 26, TK_ABORT = 27, TK_ACTION = 28, TK_AFTER = 29, TK_ANALYZE = 30, TK_ASC = 31, TK_ATTACH = 32, TK_BEFORE = 33, TK_BY = 34, TK_CASCADE = 35, TK_CAST = 36, TK_CONFLICT = 37, TK_DATABASE = 38, TK_DESC = 39, TK_DETACH = 40, TK_EACH = 41, TK_FAIL = 42, TK_OR = 43, TK_AND = 44, TK_IS = 45, TK_MATCH = 46, TK_LIKE_KW = 47, TK_BETWEEN = 48, TK_IN = 49, TK_ISNULL = 50, TK_NOTNULL = 51, TK_NE = 52, TK_EQ = 53, TK_GT = 54, TK_LE = 55, TK_LT = 56, TK_GE = 57, TK_ESCAPE = 58, TK_ID = 59, TK_COLUMNKW = 60, TK_DO = 61, TK_FOR = 62, TK_IGNORE = 63, TK_INITIALLY = 64, TK_INSTEAD = 65, TK_NO = 66, TK_KEY = 67, TK_OF = 68, TK_OFFSET = 69, TK_PRAGMA = 70, TK_RAISE = 71, TK_RECURSIVE = 72, TK_REPLACE = 73, TK_RESTRICT = 74, TK_ROW = 75, TK_ROWS = 76, TK_TRIGGER = 77, TK_VACUUM = 78, TK_VIEW = 79, TK_VIRTUAL = 80, TK_WITH = 81, TK_NULLS = 82, TK_FIRST = 83, TK_LAST = 84, TK_CURRENT = 85, TK_FOLLOWING = 86, TK_PARTITION = 87, TK_PRECEDING = 88, TK_RANGE = 89, TK_UNBOUNDED = 90, TK_EXCLUDE = 91, TK_GROUPS = 92, TK_OTHERS = 93, TK_TIES = 94, TK_GENERATED = 95, TK_ALWAYS = 96, TK_MATERIALIZED = 97, TK_REINDEX = 98, TK_RENAME = 99, TK_CTIME_KW = 100, TK_ANY = 101, TK_BITAND = 102, TK_BITOR = 103, TK_LSHIFT = 104, TK_RSHIFT = 105, TK_PLUS = 106, TK_MINUS = 107, TK_STAR = 108, TK_SLASH = 109, TK_REM = 110, TK_CONCAT = 111, TK_PTR = 112, TK_COLLATE = 113, TK_BITNOT = 114, TK_ON = 115, TK_INDEXED = 116, TK_STRING = 117, TK_JOIN_KW = 118, TK_CONSTRAINT = 119, TK_DEFAULT = 120, TK_NULL = 121, TK_PRIMARY = 122, TK_UNIQUE = 123, TK_CHECK = 124, TK_REFERENCES = 125, TK_AUTOINCR = 126, TK_INSERT = 127, TK_DELETE = 128, TK_UPDATE = 129, TK_SET = 130, TK_DEFERRABLE = 131, TK_FOREIGN = 132, TK_DROP = 133, TK_UNION = 134, TK_ALL = 135, TK_EXCEPT = 136, TK_INTERSECT = 137, TK_SELECT = 138, TK_VALUES = 139, TK_DISTINCT = 140, TK_DOT = 141, TK_FROM = 142, TK_JOIN = 143, TK_USING = 144, TK_ORDER = 145, TK_GROUP = 146, TK_HAVING = 147, TK_LIMIT = 148, TK_WHERE = 149, TK_RETURNING = 150, TK_INTO = 151, TK_NOTHING = 152, TK_BLOB = 153, TK_FLOAT = 154, TK_INTEGER = 155, TK_VARIABLE = 156, TK_CASE = 157, TK_WHEN = 158, TK_THEN = 159, TK_ELSE = 160, TK_INDEX = 161, TK_ALTER = 162, TK_ADD = 163, TK_WINDOW = 164, TK_OVER = 165, TK_FILTER = 166,
}
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 = 0

§

TK_SEMI = 1

§

TK_EXPLAIN = 2

§

TK_QUERY = 3

§

TK_PLAN = 4

§

TK_BEGIN = 5

§

TK_TRANSACTION = 6

§

TK_DEFERRED = 7

§

TK_IMMEDIATE = 8

§

TK_EXCLUSIVE = 9

§

TK_COMMIT = 10

§

TK_END = 11

§

TK_ROLLBACK = 12

§

TK_SAVEPOINT = 13

§

TK_RELEASE = 14

§

TK_TO = 15

§

TK_TABLE = 16

§

TK_CREATE = 17

§

TK_IF = 18

§

TK_NOT = 19

§

TK_EXISTS = 20

§

TK_TEMP = 21

§

TK_LP = 22

§

TK_RP = 23

§

TK_AS = 24

§

TK_COMMA = 25

§

TK_WITHOUT = 26

§

TK_ABORT = 27

§

TK_ACTION = 28

§

TK_AFTER = 29

§

TK_ANALYZE = 30

§

TK_ASC = 31

§

TK_ATTACH = 32

§

TK_BEFORE = 33

§

TK_BY = 34

§

TK_CASCADE = 35

§

TK_CAST = 36

§

TK_CONFLICT = 37

§

TK_DATABASE = 38

§

TK_DESC = 39

§

TK_DETACH = 40

§

TK_EACH = 41

§

TK_FAIL = 42

§

TK_OR = 43

§

TK_AND = 44

§

TK_IS = 45

§

TK_MATCH = 46

§

TK_LIKE_KW = 47

§

TK_BETWEEN = 48

§

TK_IN = 49

§

TK_ISNULL = 50

§

TK_NOTNULL = 51

§

TK_NE = 52

§

TK_EQ = 53

§

TK_GT = 54

§

TK_LE = 55

§

TK_LT = 56

§

TK_GE = 57

§

TK_ESCAPE = 58

§

TK_ID = 59

§

TK_COLUMNKW = 60

§

TK_DO = 61

§

TK_FOR = 62

§

TK_IGNORE = 63

§

TK_INITIALLY = 64

§

TK_INSTEAD = 65

§

TK_NO = 66

§

TK_KEY = 67

§

TK_OF = 68

§

TK_OFFSET = 69

§

TK_PRAGMA = 70

§

TK_RAISE = 71

§

TK_RECURSIVE = 72

§

TK_REPLACE = 73

§

TK_RESTRICT = 74

§

TK_ROW = 75

§

TK_ROWS = 76

§

TK_TRIGGER = 77

§

TK_VACUUM = 78

§

TK_VIEW = 79

§

TK_VIRTUAL = 80

§

TK_WITH = 81

§

TK_NULLS = 82

§

TK_FIRST = 83

§

TK_LAST = 84

§

TK_CURRENT = 85

§

TK_FOLLOWING = 86

§

TK_PARTITION = 87

§

TK_PRECEDING = 88

§

TK_RANGE = 89

§

TK_UNBOUNDED = 90

§

TK_EXCLUDE = 91

§

TK_GROUPS = 92

§

TK_OTHERS = 93

§

TK_TIES = 94

§

TK_GENERATED = 95

§

TK_ALWAYS = 96

§

TK_MATERIALIZED = 97

§

TK_REINDEX = 98

§

TK_RENAME = 99

§

TK_CTIME_KW = 100

§

TK_ANY = 101

§

TK_BITAND = 102

§

TK_BITOR = 103

§

TK_LSHIFT = 104

§

TK_RSHIFT = 105

§

TK_PLUS = 106

§

TK_MINUS = 107

§

TK_STAR = 108

§

TK_SLASH = 109

§

TK_REM = 110

§

TK_CONCAT = 111

§

TK_PTR = 112

§

TK_COLLATE = 113

§

TK_BITNOT = 114

§

TK_ON = 115

§

TK_INDEXED = 116

§

TK_STRING = 117

§

TK_JOIN_KW = 118

§

TK_CONSTRAINT = 119

§

TK_DEFAULT = 120

§

TK_NULL = 121

§

TK_PRIMARY = 122

§

TK_UNIQUE = 123

§

TK_CHECK = 124

§

TK_REFERENCES = 125

§

TK_AUTOINCR = 126

§

TK_INSERT = 127

§

TK_DELETE = 128

§

TK_UPDATE = 129

§

TK_SET = 130

§

TK_DEFERRABLE = 131

§

TK_FOREIGN = 132

§

TK_DROP = 133

§

TK_UNION = 134

§

TK_ALL = 135

§

TK_EXCEPT = 136

§

TK_INTERSECT = 137

§

TK_SELECT = 138

§

TK_VALUES = 139

§

TK_DISTINCT = 140

§

TK_DOT = 141

§

TK_FROM = 142

§

TK_JOIN = 143

§

TK_USING = 144

§

TK_ORDER = 145

§

TK_GROUP = 146

§

TK_HAVING = 147

§

TK_LIMIT = 148

§

TK_WHERE = 149

§

TK_RETURNING = 150

§

TK_INTO = 151

§

TK_NOTHING = 152

§

TK_BLOB = 153

§

TK_FLOAT = 154

§

TK_INTEGER = 155

§

TK_VARIABLE = 156

§

TK_CASE = 157

§

TK_WHEN = 158

§

TK_THEN = 159

§

TK_ELSE = 160

§

TK_INDEX = 161

§

TK_ALTER = 162

§

TK_ADD = 163

§

TK_WINDOW = 164

§

TK_OVER = 165

§

TK_FILTER = 166

Implementations§

Source§

impl TokenType

Source

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

Return the associated string (mainly for testing)

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 for TokenType

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd 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

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

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

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

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 StructuralPartialEq for TokenType

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

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

Source§

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

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where 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 T
where 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 T
where T: Clone,

Source§

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 T
where U: Into<T>,

Source§

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 T
where U: TryFrom<T>,

Source§

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.