Struct xswag_syntax_java::lex::TokenSpan [] [src]

pub struct TokenSpan {
    pub tok: Token,
    pub span: Span,
}

A token with it's span in the source text

Fields

tok: Token

The token

span: Span

Byte position of token in Filemap

Trait Implementations

impl PartialEq for TokenSpan
[src]

fn eq(&self, __arg_0: &TokenSpan) -> bool

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

fn ne(&self, __arg_0: &TokenSpan) -> bool

This method tests for !=.

impl Clone for TokenSpan
[src]

fn clone(&self) -> TokenSpan

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 TokenSpan
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.