#[non_exhaustive]
pub enum Symbol {
Show 60 variants
And,
Break,
Do,
ElseIf,
Else,
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,
Hash,
LeftBrace,
LeftBracket,
LeftParen,
LessThanEqual,
LessThan,
Minus,
Percent,
Pipe,
Plus,
QuestionMark,
RightBrace,
RightBracket,
RightParen,
Semicolon,
Slash,
Star,
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
ElseIf
Else
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
Hash
LeftBrace
LeftBracket
LeftParen
LessThanEqual
LessThan
Minus
Percent
Pipe
Plus
QuestionMark
RightBrace
RightBracket
RightParen
Semicolon
Slash
Star
TildeEqual
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Symbol
impl<'de> Deserialize<'de> for Symbol
sourcefn 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
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more