pub enum Keyword {
Await,
Break,
Case,
Catch,
Class,
Const,
Continue,
Debugger,
Default,
Delete,
Do,
Else,
Enum,
Export,
Finally,
For,
Function,
If,
Implements,
Import,
In,
InstanceOf,
Interface,
Let,
New,
Package,
Private,
Protected,
Public,
Return,
Static,
Super,
Switch,
This,
Throw,
Try,
TypeOf,
Var,
Void,
While,
With,
Yield,
}
A JS Keyword
#Standard
await
break
case
catch
class
const
continue
debugger
default
delete (10)
do
else
export
extends
finally
for
function
if
import
in (20)
instanceof
new
return
super
switch
this
throw
try
typeof
var (30)
void
while
with
yield
enum
implements
package
protected
interface
private (40)
public
Is this keyword one of the future reserved words
- enum
- export
- implements
- super
Is this keyword a reserved word when the context
has a 'use strict' directive.
- implements
- interface
- package
- private
- protected
- public
- static
- yield
- let
Is this keyword a reserved word
- break
- case
- catch
- continue
- debugger
- default
- delete
- do
- else
- for
- function
- if
- instanceof
- in
- new
- return
- switch
- this
- throw
- try
- typeof
- var
- void
- while
- with
convert a &str into a Keyword
panics if invalid keyword
converts from a String to a Keyword
panics if an invalid keyword
Convert a keyword into a string
Performs copy-assignment from source
. Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Formats the value using the given formatter. Read more
Converts the given value to a String
. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)