Enum malk_lexer::TokenKind
[−]
[src]
pub enum TokenKind<'s> { Ident(&'s str), Whitespace(&'s str), Symbol(&'s str), Bracket(char, TokensBuf<'s>), String(Cow<'s, str>), }
An element in a token tree.
Variants
Ident(&'s str)
A string of identifier characters.
Whitespace(&'s str)
A string of whitespace characters.
Symbol(&'s str)
A valid symbol from the symbol table used when parsing.
Bracket(char, TokensBuf<'s>)
A bracket sequence of tokens.
String(Cow<'s, str>)
An unescaped string literal
Trait Implementations
impl<'s> Debug for TokenKind<'s>
[src]
impl<'s> Clone for TokenKind<'s>
[src]
fn clone(&self) -> TokenKind<'s>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more