Struct static_analyser::lex::Token [] [src]

pub struct Token {
    pub span: Span,
    pub kind: TokenKind,
}

A valid Delphi source code token.

Fields

The token's location relative to the rest of the files being processed.

What kind of token is this?

Methods

impl Token
[src]

Create a new token out of a Span and something which can be turned into a TokenKind.

Trait Implementations

impl Clone for Token
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Token
[src]

Formats the value using the given formatter.

impl PartialEq for Token
[src]

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

This method tests for !=.

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

Performs the conversion.