[][src]Enum full_moon::tokenizer::TokenType

pub enum TokenType<'a> {
    Eof,
    Identifier {
        identifier: Cow<'a, str>,
    },
    MultiLineComment {
        blocks: usize,
        comment: Cow<'a, str>,
    },
    Number {
        text: Cow<'a, str>,
    },
    SingleLineComment {
        comment: Cow<'a, str>,
    },
    StringLiteral {
        literal: Cow<'a, str>,
        multi_line: Option<usize>,
        quote_type: StringLiteralQuoteType,
    },
    Symbol {
        symbol: Symbol,
    },
    Whitespace {
        characters: Cow<'a, str>,
    },
}

Variants

EofIdentifier

Fields of Identifier

identifier: Cow<'a, str>
MultiLineComment

Fields of MultiLineComment

blocks: usizecomment: Cow<'a, str>
Number

Fields of Number

text: Cow<'a, str>
SingleLineComment

Fields of SingleLineComment

comment: Cow<'a, str>
StringLiteral

Fields of StringLiteral

literal: Cow<'a, str>multi_line: Option<usize>quote_type: StringLiteralQuoteType
Symbol

Fields of Symbol

symbol: Symbol
Whitespace

Fields of Whitespace

characters: Cow<'a, str>

Methods

impl<'a> TokenType<'a>[src]

pub fn ignore(&self) -> bool[src]

Trait Implementations

impl<'a> Clone for TokenType<'a>[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> PartialEq<TokenType<'a>> for TokenType<'a>[src]

impl<'a> Debug for TokenType<'a>[src]

impl<'a> Serialize for TokenType<'a>[src]

impl<'de: 'a, 'a> Deserialize<'de> for TokenType<'a>[src]

Auto Trait Implementations

impl<'a> Send for TokenType<'a>

impl<'a> Sync for TokenType<'a>

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]