#[repr(u16)]pub enum LuaTokenKind {
Show 125 variants
None = 0,
TkAnd = 1,
TkBreak = 2,
TkDo = 3,
TkElse = 4,
TkElseIf = 5,
TkEnd = 6,
TkFalse = 7,
TkFor = 8,
TkFunction = 9,
TkGoto = 10,
TkIf = 11,
TkIn = 12,
TkLocal = 13,
TkNil = 14,
TkNot = 15,
TkOr = 16,
TkRepeat = 17,
TkReturn = 18,
TkThen = 19,
TkTrue = 20,
TkUntil = 21,
TkWhile = 22,
TkWhitespace = 23,
TkEndOfLine = 24,
TkPlus = 25,
TkMinus = 26,
TkMul = 27,
TkDiv = 28,
TkIDiv = 29,
TkDot = 30,
TkConcat = 31,
TkDots = 32,
TkComma = 33,
TkAssign = 34,
TkEq = 35,
TkGe = 36,
TkLe = 37,
TkNe = 38,
TkShl = 39,
TkShr = 40,
TkLt = 41,
TkGt = 42,
TkMod = 43,
TkPow = 44,
TkLen = 45,
TkBitAnd = 46,
TkBitOr = 47,
TkBitXor = 48,
TkColon = 49,
TkDbColon = 50,
TkSemicolon = 51,
TkLeftBracket = 52,
TkRightBracket = 53,
TkLeftParen = 54,
TkRightParen = 55,
TkLeftBrace = 56,
TkRightBrace = 57,
TkComplex = 58,
TkInt = 59,
TkFloat = 60,
TkName = 61,
TkString = 62,
TkLongString = 63,
TkShortComment = 64,
TkLongComment = 65,
TkShebang = 66,
TkEof = 67,
TkUnknown = 68,
TkNormalStart = 69,
TkLongCommentStart = 70,
TkDocLongStart = 71,
TkDocStart = 72,
TKDocTriviaStart = 73,
TkDocTrivia = 74,
TkLongCommentEnd = 75,
TkTagClass = 76,
TkTagEnum = 77,
TkTagInterface = 78,
TkTagAlias = 79,
TkTagModule = 80,
TkTagField = 81,
TkTagType = 82,
TkTagParam = 83,
TkTagReturn = 84,
TkTagOverload = 85,
TkTagGeneric = 86,
TkTagSee = 87,
TkTagDeprecated = 88,
TkTagAsync = 89,
TkTagCast = 90,
TkTagOther = 91,
TkTagVisibility = 92,
TkTagReadonly = 93,
TkTagDiagnostic = 94,
TkTagMeta = 95,
TkTagVersion = 96,
TkTagAs = 97,
TkTagNodiscard = 98,
TkTagOperator = 99,
TkTagMapping = 100,
TkTagNamespace = 101,
TkTagUsing = 102,
TkTagSource = 103,
TkDocOr = 104,
TkDocAnd = 105,
TkDocKeyOf = 106,
TkDocExtends = 107,
TkDocAs = 108,
TkDocIn = 109,
TkDocInfer = 110,
TkDocContinue = 111,
TkDocContinueOr = 112,
TkDocDetail = 113,
TkDocQuestion = 114,
TkDocVisibility = 115,
TkDocReadonly = 116,
TkAt = 117,
TkDocVersionNumber = 118,
TkStringTemplateType = 119,
TkDocMatch = 120,
TKDocPath = 121,
TkDocRegion = 122,
TkDocEndRegion = 123,
TkDocSeeContent = 124,
}Variants§
None = 0
TkAnd = 1
TkBreak = 2
TkDo = 3
TkElse = 4
TkElseIf = 5
TkEnd = 6
TkFalse = 7
TkFor = 8
TkFunction = 9
TkGoto = 10
TkIf = 11
TkIn = 12
TkLocal = 13
TkNil = 14
TkNot = 15
TkOr = 16
TkRepeat = 17
TkReturn = 18
TkThen = 19
TkTrue = 20
TkUntil = 21
TkWhile = 22
TkWhitespace = 23
TkEndOfLine = 24
TkPlus = 25
TkMinus = 26
TkMul = 27
TkDiv = 28
TkIDiv = 29
TkDot = 30
TkConcat = 31
TkDots = 32
TkComma = 33
TkAssign = 34
TkEq = 35
TkGe = 36
TkLe = 37
TkNe = 38
TkShl = 39
TkShr = 40
TkLt = 41
TkGt = 42
TkMod = 43
TkPow = 44
TkLen = 45
TkBitAnd = 46
TkBitOr = 47
TkBitXor = 48
TkColon = 49
TkDbColon = 50
TkSemicolon = 51
TkLeftBracket = 52
TkRightBracket = 53
TkLeftParen = 54
TkRightParen = 55
TkLeftBrace = 56
TkRightBrace = 57
TkComplex = 58
TkInt = 59
TkFloat = 60
TkName = 61
TkString = 62
TkLongString = 63
TkShortComment = 64
TkLongComment = 65
TkShebang = 66
TkEof = 67
TkUnknown = 68
TkNormalStart = 69
TkLongCommentStart = 70
TkDocLongStart = 71
TkDocStart = 72
TKDocTriviaStart = 73
TkDocTrivia = 74
TkLongCommentEnd = 75
TkTagClass = 76
TkTagEnum = 77
TkTagInterface = 78
TkTagAlias = 79
TkTagModule = 80
TkTagField = 81
TkTagType = 82
TkTagParam = 83
TkTagReturn = 84
TkTagOverload = 85
TkTagGeneric = 86
TkTagSee = 87
TkTagDeprecated = 88
TkTagAsync = 89
TkTagCast = 90
TkTagOther = 91
TkTagVisibility = 92
TkTagReadonly = 93
TkTagDiagnostic = 94
TkTagMeta = 95
TkTagVersion = 96
TkTagAs = 97
TkTagNodiscard = 98
TkTagOperator = 99
TkTagMapping = 100
TkTagNamespace = 101
TkTagUsing = 102
TkTagSource = 103
TkDocOr = 104
TkDocAnd = 105
TkDocKeyOf = 106
TkDocExtends = 107
TkDocAs = 108
TkDocIn = 109
TkDocInfer = 110
TkDocContinue = 111
TkDocContinueOr = 112
TkDocDetail = 113
TkDocQuestion = 114
TkDocVisibility = 115
TkDocReadonly = 116
TkAt = 117
TkDocVersionNumber = 118
TkStringTemplateType = 119
TkDocMatch = 120
TKDocPath = 121
TkDocRegion = 122
TkDocEndRegion = 123
TkDocSeeContent = 124
Trait Implementations§
Source§impl Clone for LuaTokenKind
impl Clone for LuaTokenKind
Source§fn clone(&self) -> LuaTokenKind
fn clone(&self) -> LuaTokenKind
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LuaTokenKind
impl Debug for LuaTokenKind
Source§impl Display for LuaTokenKind
impl Display for LuaTokenKind
Source§impl From<LuaTokenKind> for LuaKind
impl From<LuaTokenKind> for LuaKind
Source§fn from(kind: LuaTokenKind) -> Self
fn from(kind: LuaTokenKind) -> Self
Converts to this type from the input type.
Source§impl From<LuaTokenKind> for SyntaxKind
impl From<LuaTokenKind> for SyntaxKind
Source§fn from(kind: LuaTokenKind) -> Self
fn from(kind: LuaTokenKind) -> Self
Converts to this type from the input type.
Source§impl From<SyntaxKind> for LuaTokenKind
impl From<SyntaxKind> for LuaTokenKind
Source§fn from(kind: SyntaxKind) -> Self
fn from(kind: SyntaxKind) -> Self
Converts to this type from the input type.
Source§impl Hash for LuaTokenKind
impl Hash for LuaTokenKind
Source§impl Into<LuaTokenKind> for LuaKind
impl Into<LuaTokenKind> for LuaKind
Source§fn into(self) -> LuaTokenKind
fn into(self) -> LuaTokenKind
Converts this type into the (usually inferred) input type.
Source§impl Ord for LuaTokenKind
impl Ord for LuaTokenKind
Source§fn cmp(&self, other: &LuaTokenKind) -> Ordering
fn cmp(&self, other: &LuaTokenKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LuaTokenKind
impl PartialEq for LuaTokenKind
Source§impl PartialOrd for LuaTokenKind
impl PartialOrd for LuaTokenKind
impl Copy for LuaTokenKind
impl Eq for LuaTokenKind
impl StructuralPartialEq for LuaTokenKind
Auto Trait Implementations§
impl Freeze for LuaTokenKind
impl RefUnwindSafe for LuaTokenKind
impl Send for LuaTokenKind
impl Sync for LuaTokenKind
impl Unpin for LuaTokenKind
impl UnwindSafe for LuaTokenKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more