Struct malk_lexer::Token [] [src]

pub struct Token<'s> {
    pub start: TextPos,
    pub kind: TokenKind<'s>,
}

A token with a position.

Fields

The position of the start of the token.

The kind of token.

Methods

impl<'s> Token<'s>
[src]

Check whether a token is a whitespace token.

Trait Implementations

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

Formats the value using the given formatter.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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

This method tests for !=.