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

pub struct StringReader<'a> { /* fields omitted */ }

Methods

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

pub fn try_next_token(&mut self) -> Result<TokenAndSpan, ()>[src]

Returns the next token. EFFECT: advances the string_reader.

pub fn real_token(&mut self) -> TokenAndSpan[src]

pub fn buffer_fatal_errors(&mut self) -> Vec<Diagnostic>[src]

pub fn peek(&self) -> TokenAndSpan[src]

pub fn new_or_buffered_errs(
    sess: &'a ParseSess,
    source_file: Lrc<SourceFile>,
    override_span: Option<Span>
) -> Result<Self, Vec<Diagnostic>>
[src]

pub fn retokenize(sess: &'a ParseSess, span: Span) -> Self[src]

Auto Trait Implementations

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

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

Blanket Implementations

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

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

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

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

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

impl<E> SpecializationError for E[src]

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

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

impl<T> Erased for T[src]