Struct syntax::parse::lexer::StringReader[][src]

pub struct StringReader<'a> {
    pub sess: &'a ParseSess,
    pub next_pos: BytePos,
    pub pos: BytePos,
    pub ch: Option<char>,
    pub filemap: Lrc<FileMap>,
    pub end_src_index: usize,
    // some fields omitted
}

Fields

The absolute offset within the codemap of the next character to read

The absolute offset within the codemap of the current character

The current character (which has been read from self.pos)

Stop reading src at this index.

Methods

impl<'a> StringReader<'a>
[src]

Return the next token. EFFECT: advances the string_reader.

Auto Trait Implementations

impl<'a> !Send for StringReader<'a>

impl<'a> !Sync for StringReader<'a>