Struct malk_lexer::Token
[−]
[src]
pub struct Token<'s> { pub start: TextPos, pub kind: TokenKind<'s>, }
A token with a position.
Fields
start: TextPos
The position of the start of the token.
kind: TokenKind<'s>
The kind of token.
Methods
impl<'s> Token<'s>
[src]
fn is_whitespace(&self) -> bool
Check whether a token is a whitespace token.
Trait Implementations
impl<'s> Debug for Token<'s>
[src]
impl<'s> Clone for Token<'s>
[src]
fn clone(&self) -> Token<'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