[][src]Enum jingo_lib::frontend::lexer::TokenType

pub enum TokenType {
    LeftBrak,
    RightBrack,
    LeftBrace,
    RightBrace,
    Comma,
    Dot,
    Plus,
    Minus,
    Semicolon,
    FSlash,
    Star,
    Not,
    Equal,
    Less,
    Greater,
    NotEqual,
    EqualEqual,
    GreaterEqual,
    LessEqual,
    Comment,
    DocComment(String),
    HeaderComment(String),
    Identifier(String),
    StringLit(String),
    NumLit(i64),
    FloatLit(f64),
    And,
    Class,
    Else,
    False,
    Func,
    For,
    If,
    Null,
    Or,
    Print,
    Return,
    Super,
    This,
    True,
    Var,
    While,
    Eof,
}

The token type, represents the type of a Token after scanning.

All token types are guaranteed to be displayed using fmt::Display in a human-readable fashion, please reference that if you would like to see what each type looks like in chars (it is found in Trait Implementations).

Variants

LeftBrak
RightBrack
LeftBrace
RightBrace
Comma
Dot
Plus
Minus
Semicolon
FSlash
Star
Not
Equal
Less
Greater
NotEqual
EqualEqual
GreaterEqual
LessEqual
Comment
DocComment(String)
HeaderComment(String)
Identifier(String)
StringLit(String)
NumLit(i64)
FloatLit(f64)
And
Class
Else
False
Func
For
If
Null
Or
Print
Return
Super
This
True
Var
While
Eof

Special eof used for end of scan runs

Trait Implementations

impl Clone for TokenType[src]

impl Debug for TokenType[src]

impl Display for TokenType[src]

impl PartialEq<TokenType> for TokenType[src]

impl PartialOrd<TokenType> for TokenType[src]

impl StructuralPartialEq for TokenType[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<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.