Enum erl_tokenize::LexicalToken [] [src]

pub enum LexicalToken {
    Atom(AtomToken),
    Char(CharToken),
    Float(FloatToken),
    Integer(IntegerToken),
    Keyword(KeywordToken),
    String(StringToken),
    Symbol(SymbolToken),
    Variable(VariableToken),
}

Lexical token.

This kind of token is meaningful in lexical analysis.

Variants

Methods

impl LexicalToken
[src]

Returns the original textual representation of this token.

Tries to return the reference to the inner AtomToken.

Tries to return the reference to the inner CharToken.

Tries to return the reference to the inner FloatToken.

Tries to return the reference to the inner IntegerToken.

Tries to return the reference to the inner KeywordToken.

Tries to return the reference to the inner StringToken.

Tries to return the reference to the inner SymbolToken.

Tries to return the reference to the inner VariableToken.

Tries to return the inner AtomToken.

Tries to return the inner CharToken.

Tries to return the inner FloatToken.

Tries to return the inner IntegerToken.

Tries to return the inner KeywordToken.

Tries to return the inner StringToken.

Tries to return the inner SymbolToken.

Tries to return the inner VariableToken.

Trait Implementations

impl Debug for LexicalToken
[src]

Formats the value using the given formatter.

impl Clone for LexicalToken
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<AtomToken> for LexicalToken
[src]

Performs the conversion.

impl From<CharToken> for LexicalToken
[src]

Performs the conversion.

impl From<FloatToken> for LexicalToken
[src]

Performs the conversion.

impl From<IntegerToken> for LexicalToken
[src]

Performs the conversion.

impl From<KeywordToken> for LexicalToken
[src]

Performs the conversion.

impl From<StringToken> for LexicalToken
[src]

Performs the conversion.

impl From<SymbolToken> for LexicalToken
[src]

Performs the conversion.

impl From<VariableToken> for LexicalToken
[src]

Performs the conversion.

impl PositionRange for LexicalToken
[src]

Returns the (inclusive) start position of this.

Returns the (exclusive) end position of this.

impl Display for LexicalToken
[src]

Formats the value using the given formatter. Read more