#[repr(u16)]pub enum LuaTokenKind {
Show 146 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,
TkGlobal = 23,
TkWhitespace = 24,
TkEndOfLine = 25,
TkPlus = 26,
TkMinus = 27,
TkMul = 28,
TkDiv = 29,
TkIDiv = 30,
TkDot = 31,
TkConcat = 32,
TkDots = 33,
TkComma = 34,
TkAssign = 35,
TkEq = 36,
TkGe = 37,
TkLe = 38,
TkNe = 39,
TkShl = 40,
TkShr = 41,
TkLt = 42,
TkGt = 43,
TkMod = 44,
TkPow = 45,
TkLen = 46,
TkBitAnd = 47,
TkBitOr = 48,
TkBitXor = 49,
TkColon = 50,
TkDbColon = 51,
TkSemicolon = 52,
TkPlusAssign = 53,
TkMinusAssign = 54,
TkStarAssign = 55,
TkSlashAssign = 56,
TkPercentAssign = 57,
TkCaretAssign = 58,
TkDoubleSlashAssign = 59,
TkPipeAssign = 60,
TkAmpAssign = 61,
TkShiftLeftAssign = 62,
TkShiftRightAssign = 63,
TkLeftBracket = 64,
TkRightBracket = 65,
TkLeftParen = 66,
TkRightParen = 67,
TkLeftBrace = 68,
TkRightBrace = 69,
TkComplex = 70,
TkInt = 71,
TkFloat = 72,
TkName = 73,
TkString = 74,
TkLongString = 75,
TkShortComment = 76,
TkLongComment = 77,
TkShebang = 78,
TkEof = 79,
TkUnknown = 80,
TkNormalStart = 81,
TkLongCommentStart = 82,
TkDocLongStart = 83,
TkDocStart = 84,
TKDocTriviaStart = 85,
TkDocTrivia = 86,
TkLongCommentEnd = 87,
TKNonStdComment = 88,
TkTagClass = 89,
TkTagEnum = 90,
TkTagInterface = 91,
TkTagAlias = 92,
TkTagModule = 93,
TkTagField = 94,
TkTagType = 95,
TkTagParam = 96,
TkTagReturn = 97,
TkTagOverload = 98,
TkTagGeneric = 99,
TkTagSee = 100,
TkTagDeprecated = 101,
TkTagAsync = 102,
TkTagCast = 103,
TkTagOther = 104,
TkTagVisibility = 105,
TkTagReadonly = 106,
TkTagDiagnostic = 107,
TkTagMeta = 108,
TkTagVersion = 109,
TkTagAs = 110,
TkTagNodiscard = 111,
TkTagOperator = 112,
TkTagMapping = 113,
TkTagNamespace = 114,
TkTagUsing = 115,
TkTagSource = 116,
TkTagReturnCast = 117,
TkTagExport = 118,
TkLanguage = 119,
TkTagAttribute = 120,
TkCallGeneric = 121,
TkDocOr = 122,
TkDocAnd = 123,
TkDocKeyOf = 124,
TkDocExtends = 125,
TkDocNew = 126,
TkDocAs = 127,
TkDocIn = 128,
TkDocInfer = 129,
TkDocElse = 130,
TkDocContinue = 131,
TkDocContinueOr = 132,
TkDocDetail = 133,
TkDocQuestion = 134,
TkDocVisibility = 135,
TkDocReadonly = 136,
TkAt = 137,
TkDocVersionNumber = 138,
TkStringTemplateType = 139,
TkDocMatch = 140,
TKDocPath = 141,
TkDocRegion = 142,
TkDocEndRegion = 143,
TkDocSeeContent = 144,
TkDocAttributeUse = 145,
}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
TkGlobal = 23
TkWhitespace = 24
TkEndOfLine = 25
TkPlus = 26
TkMinus = 27
TkMul = 28
TkDiv = 29
TkIDiv = 30
TkDot = 31
TkConcat = 32
TkDots = 33
TkComma = 34
TkAssign = 35
TkEq = 36
TkGe = 37
TkLe = 38
TkNe = 39
TkShl = 40
TkShr = 41
TkLt = 42
TkGt = 43
TkMod = 44
TkPow = 45
TkLen = 46
TkBitAnd = 47
TkBitOr = 48
TkBitXor = 49
TkColon = 50
TkDbColon = 51
TkSemicolon = 52
TkPlusAssign = 53
TkMinusAssign = 54
TkStarAssign = 55
TkSlashAssign = 56
TkPercentAssign = 57
TkCaretAssign = 58
TkDoubleSlashAssign = 59
TkPipeAssign = 60
TkAmpAssign = 61
TkShiftLeftAssign = 62
TkShiftRightAssign = 63
TkLeftBracket = 64
TkRightBracket = 65
TkLeftParen = 66
TkRightParen = 67
TkLeftBrace = 68
TkRightBrace = 69
TkComplex = 70
TkInt = 71
TkFloat = 72
TkName = 73
TkString = 74
TkLongString = 75
TkShortComment = 76
TkLongComment = 77
TkShebang = 78
TkEof = 79
TkUnknown = 80
TkNormalStart = 81
TkLongCommentStart = 82
TkDocLongStart = 83
TkDocStart = 84
TKDocTriviaStart = 85
TkDocTrivia = 86
TkLongCommentEnd = 87
TKNonStdComment = 88
TkTagClass = 89
TkTagEnum = 90
TkTagInterface = 91
TkTagAlias = 92
TkTagModule = 93
TkTagField = 94
TkTagType = 95
TkTagParam = 96
TkTagReturn = 97
TkTagOverload = 98
TkTagGeneric = 99
TkTagSee = 100
TkTagDeprecated = 101
TkTagAsync = 102
TkTagCast = 103
TkTagOther = 104
TkTagVisibility = 105
TkTagReadonly = 106
TkTagDiagnostic = 107
TkTagMeta = 108
TkTagVersion = 109
TkTagAs = 110
TkTagNodiscard = 111
TkTagOperator = 112
TkTagMapping = 113
TkTagNamespace = 114
TkTagUsing = 115
TkTagSource = 116
TkTagReturnCast = 117
TkTagExport = 118
TkLanguage = 119
TkTagAttribute = 120
TkCallGeneric = 121
TkDocOr = 122
TkDocAnd = 123
TkDocKeyOf = 124
TkDocExtends = 125
TkDocNew = 126
TkDocAs = 127
TkDocIn = 128
TkDocInfer = 129
TkDocElse = 130
TkDocContinue = 131
TkDocContinueOr = 132
TkDocDetail = 133
TkDocQuestion = 134
TkDocVisibility = 135
TkDocReadonly = 136
TkAt = 137
TkDocVersionNumber = 138
TkStringTemplateType = 139
TkDocMatch = 140
TKDocPath = 141
TkDocRegion = 142
TkDocEndRegion = 143
TkDocSeeContent = 144
TkDocAttributeUse = 145
Implementations§
Source§impl LuaTokenKind
impl LuaTokenKind
pub fn is_keyword(self) -> bool
pub fn is_assign_op(self) -> bool
Trait Implementations§
Source§impl Clone for LuaTokenKind
impl Clone for LuaTokenKind
Source§fn clone(&self) -> LuaTokenKind
fn clone(&self) -> LuaTokenKind
Returns a duplicate 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<LuaKind> for LuaTokenKind
impl From<LuaKind> 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 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