#[repr(u16)]pub enum LuaTokenType {
Show 64 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,
}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
Trait Implementations§
Source§impl Clone for LuaTokenType
impl Clone for LuaTokenType
Source§fn clone(&self) -> LuaTokenType
fn clone(&self) -> LuaTokenType
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 LuaTokenType
impl Debug for LuaTokenType
Source§impl<'de> Deserialize<'de> for LuaTokenType
impl<'de> Deserialize<'de> for LuaTokenType
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 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 LuaTokenType
impl Hash for LuaTokenType
Source§impl PartialEq for LuaTokenType
impl PartialEq for LuaTokenType
Source§impl Serialize for LuaTokenType
impl Serialize for LuaTokenType
Source§impl TokenType for LuaTokenType
impl TokenType for LuaTokenType
Source§const END_OF_STREAM: Self = Self::EndOfStream
const END_OF_STREAM: Self = Self::EndOfStream
A constant representing the end of the input stream. Read more
Source§type Role = UniversalTokenRole
type Role = UniversalTokenRole
The associated role type for this token kind.
Source§fn is_ignored(&self) -> bool
fn is_ignored(&self) -> bool
Returns true if this token represents trivia (whitespace, comments, etc.). Read more
Source§fn is_role(&self, role: Self::Role) -> bool
fn is_role(&self, role: Self::Role) -> bool
Returns true if this token matches the specified language-specific role.
Source§fn is_universal(&self, role: UniversalTokenRole) -> bool
fn is_universal(&self, role: UniversalTokenRole) -> bool
Returns true if this token matches the specified universal role.
Source§fn is_comment(&self) -> bool
fn is_comment(&self) -> bool
Returns true if this token represents a comment. Read more
Source§fn is_whitespace(&self) -> bool
fn is_whitespace(&self) -> bool
Returns true if this token represents whitespace. Read more
Source§fn is_error(&self) -> bool
fn is_error(&self) -> bool
Returns true if this token represents an error condition. Read more
Source§fn is_end_of_stream(&self) -> bool
fn is_end_of_stream(&self) -> bool
Returns true if this token represents the end of the input stream. Read more
impl Copy for LuaTokenType
impl Eq for LuaTokenType
impl StructuralPartialEq for LuaTokenType
Auto Trait Implementations§
impl Freeze for LuaTokenType
impl RefUnwindSafe for LuaTokenType
impl Send for LuaTokenType
impl Sync for LuaTokenType
impl Unpin for LuaTokenType
impl UnwindSafe for LuaTokenType
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