[][src]Enum boa::syntax::ast::keyword::Keyword

pub enum Keyword {
    Await,
    Async,
    Break,
    Case,
    Catch,
    Class,
    Continue,
    Const,
    Debugger,
    Default,
    Delete,
    Do,
    Else,
    Enum,
    Export,
    Extends,
    Finally,
    For,
    Function,
    If,
    In,
    InstanceOf,
    Import,
    Let,
    New,
    Of,
    Return,
    Super,
    Switch,
    This,
    Throw,
    Try,
    TypeOf,
    Var,
    Void,
    While,
    With,
    Yield,
}

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

The await keyword.

More information:

Async

The async keyword.

More information:

Break
Case
Catch

The catch keyword.

More information:

Class

The class keyword.

More information:

Continue

The continue keyword.

More information:

Const
Debugger

The debugger keyword.

More information:

Default
Delete
Do

The do keyword.

More information:

Else

The else keyword.

More information:

Enum

The enum keyword.

Future reserved keyword.

Export

The export keyword.

More information:

Extends

The extends keyword.

More information:

Finally

The finally keyword.

More information:

For
Function

The function keyword.

More information:

If
In

The in keyword.

More information:

InstanceOf

The instanceof keyword.

More information:

Import

The import keyword.

More information:

Let
New
Of

The of keyword.

More information:

Return
Super

The super keyword

More information:

Switch
This
Throw
Try
TypeOf
Var
Void
While
With

The with keyword.

More information:

Yield

The 'yield' keyword.

More information:

Implementations

impl Keyword[src]

pub fn as_binop(self) -> Option<BinOp>[src]

Gets the keyword as a binary operation, if this keyword is the in keyword.

pub fn as_str(self) -> &'static str[src]

Gets the keyword as a string.

Trait Implementations

impl Clone for Keyword[src]

impl Copy for Keyword[src]

impl Debug for Keyword[src]

impl Display for Keyword[src]

impl From<Keyword> for TokenKind[src]

impl FromStr for Keyword[src]

type Err = KeywordError

The associated error which can be returned from parsing.

impl PartialEq<Keyword> for Keyword[src]

impl PartialEq<Keyword> for Punctuator[src]

impl PartialEq<Punctuator> for Keyword[src]

impl StructuralPartialEq for Keyword[src]

impl TryInto<BinOp> for Keyword[src]

type Error = String

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,