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

Methods

impl Keyword
[src]

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.

Keywords

  • implements
  • interface
  • package
  • private
  • protected
  • public
  • static
  • yield
  • let

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]

Formats the value using the given formatter. Read more

impl PartialEq for Keyword
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for Keyword
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Keyword
[src]

impl<'a> From<&'a str> for Keyword
[src]

convert a &str into a Keyword

panics if invalid keyword

impl From<String> for Keyword
[src]

converts from a String to a Keyword

panics if an invalid keyword

impl ToString for Keyword
[src]

Convert a keyword into a string

Auto Trait Implementations

impl Send for Keyword

impl Sync for Keyword