#[repr(u16)]pub enum LuaTokenKind {
Show 141 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,
TkDocOr = 120,
TkDocAnd = 121,
TkDocKeyOf = 122,
TkDocExtends = 123,
TkDocAs = 124,
TkDocIn = 125,
TkDocInfer = 126,
TkDocContinue = 127,
TkDocContinueOr = 128,
TkDocDetail = 129,
TkDocQuestion = 130,
TkDocVisibility = 131,
TkDocReadonly = 132,
TkAt = 133,
TkDocVersionNumber = 134,
TkStringTemplateType = 135,
TkDocMatch = 136,
TKDocPath = 137,
TkDocRegion = 138,
TkDocEndRegion = 139,
TkDocSeeContent = 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
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
TkDocOr = 120
TkDocAnd = 121
TkDocKeyOf = 122
TkDocExtends = 123
TkDocAs = 124
TkDocIn = 125
TkDocInfer = 126
TkDocContinue = 127
TkDocContinueOr = 128
TkDocDetail = 129
TkDocQuestion = 130
TkDocVisibility = 131
TkDocReadonly = 132
TkAt = 133
TkDocVersionNumber = 134
TkStringTemplateType = 135
TkDocMatch = 136
TKDocPath = 137
TkDocRegion = 138
TkDocEndRegion = 139
TkDocSeeContent = 140
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