#[non_exhaustive]pub enum Symbol {
Show 64 variants
And,
Break,
Do,
Else,
ElseIf,
End,
False,
For,
Function,
If,
In,
Local,
Nil,
Not,
Or,
Repeat,
Return,
Then,
True,
Until,
While,
Goto,
PlusEqual,
MinusEqual,
StarEqual,
SlashEqual,
PercentEqual,
CaretEqual,
TwoDotsEqual,
Ampersand,
ThinArrow,
TwoColons,
Caret,
Colon,
Comma,
Ellipse,
TwoDots,
Dot,
TwoEqual,
Equal,
GreaterThanEqual,
GreaterThan,
DoubleGreaterThan,
Hash,
LeftBracket,
LeftBrace,
LeftParen,
LessThanEqual,
LessThan,
DoubleLessThan,
Minus,
Percent,
Pipe,
Plus,
QuestionMark,
RightBrace,
RightBracket,
RightParen,
Semicolon,
Slash,
DoubleSlash,
Star,
Tilde,
TildeEqual,
}
Expand description
A literal symbol, used for both words important to syntax (like while) and operators (like +)
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
And
Break
Do
Else
ElseIf
End
False
For
Function
If
In
Local
Nil
Not
Or
Repeat
Return
Then
True
Until
While
Goto
Available on crate feature
lua52
only.PlusEqual
MinusEqual
StarEqual
SlashEqual
PercentEqual
CaretEqual
TwoDotsEqual
Ampersand
Available on crate features
roblox
or lua53
only.ThinArrow
Available on crate feature
roblox
only.TwoColons
Available on crate features
roblox
or lua52
only.Caret
Colon
Comma
Ellipse
TwoDots
Dot
TwoEqual
Equal
GreaterThanEqual
GreaterThan
DoubleGreaterThan
Available on crate feature
lua53
only.Hash
LeftBracket
LeftBrace
LeftParen
LessThanEqual
LessThan
DoubleLessThan
Available on crate feature
lua53
only.Minus
Percent
Pipe
Available on crate features
roblox
or lua53
only.Plus
QuestionMark
Available on crate feature
roblox
only.RightBrace
RightBracket
RightParen
Semicolon
Slash
DoubleSlash
Available on crate features
roblox
or lua53
only.Star
Tilde
Available on crate feature
lua53
only.TildeEqual
Trait Implementations§
source§impl<'de> Deserialize<'de> for Symbol
impl<'de> Deserialize<'de> for Symbol
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 PartialEq for Symbol
impl PartialEq for Symbol
impl Copy for Symbol
impl Eq for Symbol
impl StructuralEq for Symbol
impl StructuralPartialEq for Symbol
Auto Trait Implementations§
impl RefUnwindSafe for Symbol
impl Send for Symbol
impl Sync for Symbol
impl Unpin for Symbol
impl UnwindSafe for Symbol
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