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

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

Fields

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

The absolute offset within the source_map 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>

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<E> SpecializationError for E
[src]

impl<T> Erased for T
[src]

impl<T> Send for T where
    T: ?Sized
[src]

impl<T> Sync for T where
    T: ?Sized
[src]

impl<T> Erased for T