Enum malk_lexer::TokenKind [] [src]

pub enum TokenKind<'s> {
    Ident(&'s str),
    Whitespace(&'s str),
    Symbol(&'s str),
    Bracket(charTokensBuf<'s>),
    String(Cow<'s, str>),
}

An element in a token tree.

Variants

A string of identifier characters.

A string of whitespace characters.

A valid symbol from the symbol table used when parsing.

A bracket sequence of tokens.

An unescaped string literal

Trait Implementations

impl<'s> Debug for TokenKind<'s>
[src]

Formats the value using the given formatter.

impl<'s> Clone for TokenKind<'s>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'s> PartialEq for TokenKind<'s>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.