Enum sqlite3_parser::dialect::TokenType

source ·
#[non_exhaustive]
#[repr(u16)]
pub enum TokenType {
Show 168 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_ISNOT = 46, TK_MATCH = 47, TK_LIKE_KW = 48, TK_BETWEEN = 49, TK_IN = 50, TK_ISNULL = 51, TK_NOTNULL = 52, TK_NE = 53, TK_EQ = 54, TK_GT = 55, TK_LE = 56, TK_LT = 57, TK_GE = 58, TK_ESCAPE = 59, TK_ID = 60, TK_COLUMNKW = 61, TK_DO = 62, TK_FOR = 63, TK_IGNORE = 64, TK_INITIALLY = 65, TK_INSTEAD = 66, TK_NO = 67, TK_KEY = 68, TK_OF = 69, TK_OFFSET = 70, TK_PRAGMA = 71, TK_RAISE = 72, TK_RECURSIVE = 73, TK_REPLACE = 74, TK_RESTRICT = 75, TK_ROW = 76, TK_ROWS = 77, TK_TRIGGER = 78, TK_VACUUM = 79, TK_VIEW = 80, TK_VIRTUAL = 81, TK_WITH = 82, TK_NULLS = 83, TK_FIRST = 84, TK_LAST = 85, TK_CURRENT = 86, TK_FOLLOWING = 87, TK_PARTITION = 88, TK_PRECEDING = 89, TK_RANGE = 90, TK_UNBOUNDED = 91, TK_EXCLUDE = 92, TK_GROUPS = 93, TK_OTHERS = 94, TK_TIES = 95, TK_GENERATED = 96, TK_ALWAYS = 97, TK_MATERIALIZED = 98, TK_REINDEX = 99, TK_RENAME = 100, TK_CTIME_KW = 101, TK_ANY = 102, TK_BITAND = 103, TK_BITOR = 104, TK_LSHIFT = 105, TK_RSHIFT = 106, TK_PLUS = 107, TK_MINUS = 108, TK_STAR = 109, TK_SLASH = 110, TK_REM = 111, TK_CONCAT = 112, TK_PTR = 113, TK_COLLATE = 114, TK_BITNOT = 115, TK_ON = 116, TK_INDEXED = 117, TK_STRING = 118, TK_JOIN_KW = 119, TK_CONSTRAINT = 120, TK_DEFAULT = 121, TK_NULL = 122, TK_PRIMARY = 123, TK_UNIQUE = 124, TK_CHECK = 125, TK_REFERENCES = 126, TK_AUTOINCR = 127, TK_INSERT = 128, TK_DELETE = 129, TK_UPDATE = 130, TK_SET = 131, TK_DEFERRABLE = 132, TK_FOREIGN = 133, TK_DROP = 134, TK_UNION = 135, TK_ALL = 136, TK_EXCEPT = 137, TK_INTERSECT = 138, TK_SELECT = 139, TK_VALUES = 140, TK_DISTINCT = 141, TK_DOT = 142, TK_FROM = 143, TK_JOIN = 144, TK_USING = 145, TK_ORDER = 146, TK_GROUP = 147, TK_HAVING = 148, TK_LIMIT = 149, TK_WHERE = 150, TK_RETURNING = 151, TK_INTO = 152, TK_NOTHING = 153, TK_BLOB = 154, TK_FLOAT = 155, TK_INTEGER = 156, TK_VARIABLE = 157, TK_CASE = 158, TK_WHEN = 159, TK_THEN = 160, TK_ELSE = 161, TK_INDEX = 162, TK_ALTER = 163, TK_ADD = 164, TK_WINDOW = 165, TK_OVER = 166, TK_FILTER = 167,
}
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_ISNOT = 46

§

TK_MATCH = 47

§

TK_LIKE_KW = 48

§

TK_BETWEEN = 49

§

TK_IN = 50

§

TK_ISNULL = 51

§

TK_NOTNULL = 52

§

TK_NE = 53

§

TK_EQ = 54

§

TK_GT = 55

§

TK_LE = 56

§

TK_LT = 57

§

TK_GE = 58

§

TK_ESCAPE = 59

§

TK_ID = 60

§

TK_COLUMNKW = 61

§

TK_DO = 62

§

TK_FOR = 63

§

TK_IGNORE = 64

§

TK_INITIALLY = 65

§

TK_INSTEAD = 66

§

TK_NO = 67

§

TK_KEY = 68

§

TK_OF = 69

§

TK_OFFSET = 70

§

TK_PRAGMA = 71

§

TK_RAISE = 72

§

TK_RECURSIVE = 73

§

TK_REPLACE = 74

§

TK_RESTRICT = 75

§

TK_ROW = 76

§

TK_ROWS = 77

§

TK_TRIGGER = 78

§

TK_VACUUM = 79

§

TK_VIEW = 80

§

TK_VIRTUAL = 81

§

TK_WITH = 82

§

TK_NULLS = 83

§

TK_FIRST = 84

§

TK_LAST = 85

§

TK_CURRENT = 86

§

TK_FOLLOWING = 87

§

TK_PARTITION = 88

§

TK_PRECEDING = 89

§

TK_RANGE = 90

§

TK_UNBOUNDED = 91

§

TK_EXCLUDE = 92

§

TK_GROUPS = 93

§

TK_OTHERS = 94

§

TK_TIES = 95

§

TK_GENERATED = 96

§

TK_ALWAYS = 97

§

TK_MATERIALIZED = 98

§

TK_REINDEX = 99

§

TK_RENAME = 100

§

TK_CTIME_KW = 101

§

TK_ANY = 102

§

TK_BITAND = 103

§

TK_BITOR = 104

§

TK_LSHIFT = 105

§

TK_RSHIFT = 106

§

TK_PLUS = 107

§

TK_MINUS = 108

§

TK_STAR = 109

§

TK_SLASH = 110

§

TK_REM = 111

§

TK_CONCAT = 112

§

TK_PTR = 113

§

TK_COLLATE = 114

§

TK_BITNOT = 115

§

TK_ON = 116

§

TK_INDEXED = 117

§

TK_STRING = 118

§

TK_JOIN_KW = 119

§

TK_CONSTRAINT = 120

§

TK_DEFAULT = 121

§

TK_NULL = 122

§

TK_PRIMARY = 123

§

TK_UNIQUE = 124

§

TK_CHECK = 125

§

TK_REFERENCES = 126

§

TK_AUTOINCR = 127

§

TK_INSERT = 128

§

TK_DELETE = 129

§

TK_UPDATE = 130

§

TK_SET = 131

§

TK_DEFERRABLE = 132

§

TK_FOREIGN = 133

§

TK_DROP = 134

§

TK_UNION = 135

§

TK_ALL = 136

§

TK_EXCEPT = 137

§

TK_INTERSECT = 138

§

TK_SELECT = 139

§

TK_VALUES = 140

§

TK_DISTINCT = 141

§

TK_DOT = 142

§

TK_FROM = 143

§

TK_JOIN = 144

§

TK_USING = 145

§

TK_ORDER = 146

§

TK_GROUP = 147

§

TK_HAVING = 148

§

TK_LIMIT = 149

§

TK_WHERE = 150

§

TK_RETURNING = 151

§

TK_INTO = 152

§

TK_NOTHING = 153

§

TK_BLOB = 154

§

TK_FLOAT = 155

§

TK_INTEGER = 156

§

TK_VARIABLE = 157

§

TK_CASE = 158

§

TK_WHEN = 159

§

TK_THEN = 160

§

TK_ELSE = 161

§

TK_INDEX = 162

§

TK_ALTER = 163

§

TK_ADD = 164

§

TK_WINDOW = 165

§

TK_OVER = 166

§

TK_FILTER = 167

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

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 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 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: Copy,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

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

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

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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,

§

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>,

§

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>,

§

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.