[][src]Enum silkworm_syn::token::Keyword

#[repr(u8)]pub enum Keyword {
    Set,
    Call,
    True,
    False,
    Null,
    If,
    ElseIf,
    Else,
    EndIf,
    To,
    Is,
    Eq,
    Neq,
    Lt,
    Lte,
    Gt,
    Gte,
    And,
    Or,
    Xor,
    Not,
    Return,
    For,
    Loop,
    While,
    Do,
    Done,
    Continue,
    Break,
    In,
    HeaderKey(HeaderKey),
    Pragma(Pragma),
    FeatureName(FeatureName),
}

Language keywords.

Variants

Set

set.

Call

call.

True

Boolean literal true.

False

Boolean literal false.

Null

Null literal null.

If

if.

ElseIf

elseif.

Else

else.

EndIf

endif.

To

to operator.

Is

is operator.

Eq

eq operator.

Neq

neq operator.

Lt

lt operator.

Lte

lte operator.

Gt

gt operator.

Gte

gte operator.

And

and operator.

Or

or operator.

Xor

xor operator.

Not

not operator.

Return

return

For

for

Loop

loop

While

while

Do

do

Done

next

Continue

continue

Break

break

In

in operator.

HeaderKey(HeaderKey)
Pragma(Pragma)
FeatureName(FeatureName)

Implementations

impl Keyword[src]

pub fn identify(s: &str) -> Option<Self>[src]

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

pub fn class(self) -> KeywordClass[src]

Trait Implementations

impl Clone for Keyword[src]

impl Copy for Keyword[src]

impl Debug for Keyword[src]

impl Display for Keyword[src]

impl Eq for Keyword[src]

impl Hash for Keyword[src]

impl Ord for Keyword[src]

impl PartialEq<Keyword> for Keyword[src]

impl PartialOrd<Keyword> for Keyword[src]

impl StructuralEq for Keyword[src]

impl StructuralPartialEq for Keyword[src]

Auto Trait Implementations

impl RefUnwindSafe for Keyword

impl Send for Keyword

impl Sync for Keyword

impl Unpin for Keyword

impl UnwindSafe for Keyword

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.