Struct syntex_syntax::ext::tt::transcribe::TtReader [] [src]

pub struct TtReader<'a> {
    pub sp_diag: &'a SpanHandler,
    pub cur_tok: Token,
    pub cur_span: Span,
    pub desugar_doc_comments: bool,
    // some fields omitted
}

Fields

sp_diag
cur_tok
cur_span
desugar_doc_comments

Transform doc comments. Only useful in macro invocations

Trait Implementations

impl<'a> Reader for TtReader<'a>
[src]

fn is_eof(&self) -> bool

fn next_token(&mut self) -> TokenAndSpan

fn fatal(&self, m: &str) -> FatalError

Report a fatal error with the current span.

fn err(&self, m: &str)

Report a non-fatal error with the current span.

fn peek(&self) -> TokenAndSpan

fn real_token(&mut self) -> TokenAndSpan

Get a token the parser cares about.

Derived Implementations

impl<'a> Clone for TtReader<'a>
[src]

fn clone(&self) -> TtReader<'a>

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