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>

fn is_eof(&self) -> bool

fn next_token(&mut self) -> TokenAndSpan

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

fn err(&self, m: &str)

fn peek(&self) -> TokenAndSpan

fn real_token(&mut self) -> TokenAndSpan

Derived Implementations

impl<'a> Clone for TtReader<'a>

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

fn clone_from(&mut self, source: &Self)