pub enum Keyword {
Show 41 variants
Await,
Async,
Break,
Case,
Catch,
Class,
Continue,
Const,
Debugger,
Default,
Delete,
Do,
Else,
Enum,
Export,
Extends,
False,
Finally,
For,
Function,
If,
In,
InstanceOf,
Import,
Let,
New,
Null,
Of,
Return,
Super,
Switch,
This,
Throw,
True,
Try,
TypeOf,
Var,
Void,
While,
With,
Yield,
}Expand description
Keywords are tokens that have special meaning in JavaScript.
In JavaScript you cannot use these reserved words as variables, labels, or function names.
More information:
Variants§
Await
Async
Break
The break keyword.
More information:
Case
The case keyword.
More information:
Catch
Class
Continue
The continue keyword.
More information:
Const
The const keyword.
More information:
Debugger
Default
The default keyword.
More information:
Delete
The delete keyword.
More information:
Do
Else
Enum
The enum keyword.
Future reserved keyword.
Export
Extends
False
Finally
The finally keyword.
More information:
For
The for keyword.
More information:
Function
The function keyword.
More information:
If
In
InstanceOf
Import
Let
New
Null
Of
Return
The return keyword
More information:
Super
Switch
The switch keyword.
More information:
This
Throw
The throw keyword.
More information:
True
Try
TypeOf
The typeof keyword.
More information:
Var
Void
The void keyword.
More information:
While
The while keyword.
More information:
With
Yield
Implementations§
Trait Implementations§
Source§impl PartialEq<Keyword> for Punctuator
impl PartialEq<Keyword> for Punctuator
Source§impl PartialEq<Punctuator> for Keyword
impl PartialEq<Punctuator> for Keyword
impl Copy for Keyword
impl StructuralPartialEq for Keyword
Auto Trait Implementations§
impl Freeze for Keyword
impl RefUnwindSafe for Keyword
impl Send for Keyword
impl Sync for Keyword
impl Unpin for Keyword
impl UnwindSafe for Keyword
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