Struct static_analyser::lex::Token
[−]
[src]
pub struct Token {
pub span: Span,
pub kind: TokenKind,
}A valid Delphi source code token.
Fields
span: Span
The token's location relative to the rest of the files being processed.
kind: TokenKind
What kind of token is this?
Methods
impl Token[src]
fn new<K: Into<TokenKind>>(span: Span, kind: K) -> Token
Create a new token out of a Span and something which can be turned
into a TokenKind.
Trait Implementations
impl Clone for Token[src]
fn clone(&self) -> Token
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
impl Debug for Token[src]
impl PartialEq for Token[src]
fn eq(&self, __arg_0: &Token) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Token) -> bool
This method tests for !=.
impl<T> From<T> for Token where
T: Into<TokenKind>, [src]
T: Into<TokenKind>,