#[repr(u16)]pub enum LuaElementType {
Show 104 variants
Root = 0,
And = 1,
Break = 2,
Do = 3,
Else = 4,
Elseif = 5,
End = 6,
False = 7,
For = 8,
Function = 9,
Goto = 10,
If = 11,
In = 12,
Local = 13,
Nil = 14,
Not = 15,
Or = 16,
Repeat = 17,
Return = 18,
Then = 19,
True = 20,
Until = 21,
While = 22,
Identifier = 23,
Number = 24,
String = 25,
Plus = 26,
Minus = 27,
Star = 28,
Slash = 29,
Percent = 30,
Caret = 31,
Hash = 32,
Ampersand = 33,
Tilde = 34,
Pipe = 35,
LtLt = 36,
GtGt = 37,
SlashSlash = 38,
EqEq = 39,
TildeEq = 40,
LtEq = 41,
GtEq = 42,
Lt = 43,
Gt = 44,
Eq = 45,
LeftParen = 46,
RightParen = 47,
LeftBrace = 48,
RightBrace = 49,
LeftBracket = 50,
RightBracket = 51,
ColonColon = 52,
Semicolon = 53,
Colon = 54,
Comma = 55,
Dot = 56,
DotDot = 57,
DotDotDot = 58,
Whitespace = 59,
Newline = 60,
Comment = 61,
EndOfStream = 62,
Error = 63,
SourceFile = 64,
FunctionDeclaration = 65,
ParameterList = 66,
Parameter = 67,
BlockStatement = 68,
LocalStatement = 69,
AssignmentStatement = 70,
ExpressionStatement = 71,
IfStatement = 72,
WhileStatement = 73,
ForStatement = 74,
RepeatStatement = 75,
DoStatement = 76,
BreakStatement = 77,
ReturnStatement = 78,
GotoStatement = 79,
LabelStatement = 80,
IdentifierExpression = 81,
LiteralExpression = 82,
BooleanLiteral = 83,
NilLiteral = 84,
ParenthesizedExpression = 85,
BinaryExpression = 86,
UnaryExpression = 87,
CallExpression = 88,
MemberExpression = 89,
IndexExpression = 90,
TableConstructorExpression = 91,
FunctionExpression = 92,
VarargExpression = 93,
TableField = 94,
FieldList = 95,
ArgumentList = 96,
VariableList = 97,
ExpressionList = 98,
NameList = 99,
FunctionName = 100,
FunctionBody = 101,
ChunkStatement = 102,
StatementList = 103,
}Variants§
Root = 0
And = 1
Break = 2
Do = 3
Else = 4
Elseif = 5
End = 6
False = 7
For = 8
Function = 9
Goto = 10
If = 11
In = 12
Local = 13
Nil = 14
Not = 15
Or = 16
Repeat = 17
Return = 18
Then = 19
True = 20
Until = 21
While = 22
Identifier = 23
Number = 24
String = 25
Plus = 26
Minus = 27
Star = 28
Slash = 29
Percent = 30
Caret = 31
Hash = 32
Ampersand = 33
Tilde = 34
Pipe = 35
LtLt = 36
GtGt = 37
SlashSlash = 38
EqEq = 39
TildeEq = 40
LtEq = 41
GtEq = 42
Lt = 43
Gt = 44
Eq = 45
LeftParen = 46
RightParen = 47
LeftBrace = 48
RightBrace = 49
LeftBracket = 50
RightBracket = 51
ColonColon = 52
Semicolon = 53
Colon = 54
Comma = 55
Dot = 56
DotDot = 57
DotDotDot = 58
Whitespace = 59
Newline = 60
Comment = 61
EndOfStream = 62
Error = 63
SourceFile = 64
FunctionDeclaration = 65
ParameterList = 66
Parameter = 67
BlockStatement = 68
LocalStatement = 69
AssignmentStatement = 70
ExpressionStatement = 71
IfStatement = 72
WhileStatement = 73
ForStatement = 74
RepeatStatement = 75
DoStatement = 76
BreakStatement = 77
ReturnStatement = 78
GotoStatement = 79
LabelStatement = 80
IdentifierExpression = 81
LiteralExpression = 82
BooleanLiteral = 83
NilLiteral = 84
ParenthesizedExpression = 85
BinaryExpression = 86
UnaryExpression = 87
CallExpression = 88
MemberExpression = 89
IndexExpression = 90
TableConstructorExpression = 91
FunctionExpression = 92
VarargExpression = 93
TableField = 94
FieldList = 95
ArgumentList = 96
VariableList = 97
ExpressionList = 98
NameList = 99
FunctionName = 100
FunctionBody = 101
ChunkStatement = 102
StatementList = 103
Trait Implementations§
Source§impl Clone for LuaElementType
impl Clone for LuaElementType
Source§fn clone(&self) -> LuaElementType
fn clone(&self) -> LuaElementType
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 LuaElementType
impl Debug for LuaElementType
Source§impl<'de> Deserialize<'de> for LuaElementType
impl<'de> Deserialize<'de> for LuaElementType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl ElementType for LuaElementType
impl ElementType for LuaElementType
Source§type Role = UniversalElementRole
type Role = UniversalElementRole
The associated role type for this element kind.
Source§fn is_role(&self, role: Self::Role) -> bool
fn is_role(&self, role: Self::Role) -> bool
Returns true if this element matches the specified language-specific role.
Source§fn is_universal(&self, role: UniversalElementRole) -> bool
fn is_universal(&self, role: UniversalElementRole) -> bool
Returns true if this element matches the specified universal role.
Source§impl From<LuaTokenType> for LuaElementType
impl From<LuaTokenType> for LuaElementType
Source§fn from(token: LuaTokenType) -> Self
fn from(token: LuaTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for LuaElementType
impl Hash for LuaElementType
Source§impl PartialEq for LuaElementType
impl PartialEq for LuaElementType
Source§impl Serialize for LuaElementType
impl Serialize for LuaElementType
impl Copy for LuaElementType
impl Eq for LuaElementType
impl StructuralPartialEq for LuaElementType
Auto Trait Implementations§
impl Freeze for LuaElementType
impl RefUnwindSafe for LuaElementType
impl Send for LuaElementType
impl Sync for LuaElementType
impl Unpin for LuaElementType
impl UnwindSafe for LuaElementType
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