Enum ress::Keyword [−][src]
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
Future Reserved
enum
Strict Mode Future Reserved
implements package protected interface private (40) public
Variants
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
Methods
impl Keyword
[src]
impl Keyword
pub fn is_future_reserved(&self) -> bool
[src]
pub fn is_future_reserved(&self) -> bool
Is this keyword one of the future reserved words
- enum
- export
- implements
- super
pub fn is_strict_reserved(&self) -> bool
[src]
pub fn is_strict_reserved(&self) -> bool
Is this keyword a reserved word when the context has a 'use strict' directive.
Keywords
- implements
- interface
- package
- private
- protected
- public
- static
- yield
- let
pub fn is_reserved(&self) -> bool
[src]
pub fn is_reserved(&self) -> bool
Is this keyword a reserved word
Keywords
- 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
Trait Implementations
impl Debug for Keyword
[src]
impl Debug for Keyword
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Keyword
[src]
impl PartialEq for Keyword
fn eq(&self, other: &Keyword) -> bool
[src]
fn eq(&self, other: &Keyword) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Clone for Keyword
[src]
impl Clone for Keyword
fn clone(&self) -> Keyword
[src]
fn clone(&self) -> Keyword
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Keyword
[src]
impl Copy for Keyword
impl<'a> From<&'a str> for Keyword
[src]
impl<'a> From<&'a str> for Keyword
impl From<String> for Keyword
[src]
impl From<String> for Keyword
impl ToString for Keyword
[src]
impl ToString for Keyword