[][src]Enum mtots_core::Punctuator

pub enum Punctuator {
    And,
    As,
    Break,
    Case,
    Class,
    Continue,
    Def,
    Del,
    Elif,
    Else,
    Except,
    False,
    Final,
    For,
    From,
    If,
    Import,
    In,
    Is,
    New,
    Nil,
    Nonlocal,
    Not,
    Or,
    Raise,
    Return,
    Static,
    Switch,
    Trait,
    True,
    Try,
    While,
    Yield,
    Arrow,
    At,
    Dot,
    Scope,
    Colon,
    Semicolon,
    Comma,
    Plus,
    Minus,
    Rem,
    Star,
    Star2,
    PlusEq,
    MinusEq,
    StarEq,
    RemEq,
    SlashEq,
    DoubleSlashEq,
    Star2Eq,
    Slash,
    DoubleSlash,
    Lt,
    Le,
    Gt,
    Ge,
    Eq,
    Eq2,
    Ne,
    Exclamation,
    LParen,
    RParen,
    LBracket,
    RBracket,
    LBrace,
    RBrace,
}

Variants

And
As
Break
Case
Class
Continue
Def
Del
Elif
Else
Except
False
Final
For
From
If
Import
In
Is
New
Nil
Nonlocal
Not
Or
Raise
Return
Static
Switch
Trait
True
Try
While
Yield
Arrow
At
Dot
Scope
Colon
Semicolon
Comma
Plus
Minus
Rem
Star
Star2
PlusEq
MinusEq
StarEq
RemEq
SlashEq
DoubleSlashEq
Star2Eq
Slash
DoubleSlash
Lt
Le
Gt
Ge
Eq
Eq2
Ne
Exclamation
LParen
RParen
LBracket
RBracket
LBrace
RBrace

Implementations

impl Punctuator[src]

pub const LIST: &'static [Punctuator][src]

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

pub fn from_str(s: &str) -> Option<Punctuator>[src]

Trait Implementations

impl Clone for Punctuator[src]

impl Copy for Punctuator[src]

impl Debug for Punctuator[src]

impl Display for Punctuator[src]

impl Eq for Punctuator[src]

impl Hash for Punctuator[src]

impl PartialEq<Punctuator> for Punctuator[src]

impl StructuralEq for Punctuator[src]

impl StructuralPartialEq for Punctuator[src]

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?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.