#[repr(u16)]pub enum LuaTokenKind {
Show 140 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,
TkTagClass = 88,
TkTagEnum = 89,
TkTagInterface = 90,
TkTagAlias = 91,
TkTagModule = 92,
TkTagField = 93,
TkTagType = 94,
TkTagParam = 95,
TkTagReturn = 96,
TkTagOverload = 97,
TkTagGeneric = 98,
TkTagSee = 99,
TkTagDeprecated = 100,
TkTagAsync = 101,
TkTagCast = 102,
TkTagOther = 103,
TkTagVisibility = 104,
TkTagReadonly = 105,
TkTagDiagnostic = 106,
TkTagMeta = 107,
TkTagVersion = 108,
TkTagAs = 109,
TkTagNodiscard = 110,
TkTagOperator = 111,
TkTagMapping = 112,
TkTagNamespace = 113,
TkTagUsing = 114,
TkTagSource = 115,
TkTagReturnCast = 116,
TkTagExport = 117,
TkLanguage = 118,
TkDocOr = 119,
TkDocAnd = 120,
TkDocKeyOf = 121,
TkDocExtends = 122,
TkDocAs = 123,
TkDocIn = 124,
TkDocInfer = 125,
TkDocContinue = 126,
TkDocContinueOr = 127,
TkDocDetail = 128,
TkDocQuestion = 129,
TkDocVisibility = 130,
TkDocReadonly = 131,
TkAt = 132,
TkDocVersionNumber = 133,
TkStringTemplateType = 134,
TkDocMatch = 135,
TKDocPath = 136,
TkDocRegion = 137,
TkDocEndRegion = 138,
TkDocSeeContent = 139,
}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
TkTagClass = 88
TkTagEnum = 89
TkTagInterface = 90
TkTagAlias = 91
TkTagModule = 92
TkTagField = 93
TkTagType = 94
TkTagParam = 95
TkTagReturn = 96
TkTagOverload = 97
TkTagGeneric = 98
TkTagSee = 99
TkTagDeprecated = 100
TkTagAsync = 101
TkTagCast = 102
TkTagOther = 103
TkTagVisibility = 104
TkTagReadonly = 105
TkTagDiagnostic = 106
TkTagMeta = 107
TkTagVersion = 108
TkTagAs = 109
TkTagNodiscard = 110
TkTagOperator = 111
TkTagMapping = 112
TkTagNamespace = 113
TkTagUsing = 114
TkTagSource = 115
TkTagReturnCast = 116
TkTagExport = 117
TkLanguage = 118
TkDocOr = 119
TkDocAnd = 120
TkDocKeyOf = 121
TkDocExtends = 122
TkDocAs = 123
TkDocIn = 124
TkDocInfer = 125
TkDocContinue = 126
TkDocContinueOr = 127
TkDocDetail = 128
TkDocQuestion = 129
TkDocVisibility = 130
TkDocReadonly = 131
TkAt = 132
TkDocVersionNumber = 133
TkStringTemplateType = 134
TkDocMatch = 135
TKDocPath = 136
TkDocRegion = 137
TkDocEndRegion = 138
TkDocSeeContent = 139
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