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

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

Methods

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

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

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

pub fn next_token(&mut self) -> Token[src]

Returns the next token, including trivia like whitespace or comments.

Err(()) means that some errors were encountered, which can be retrieved using buffer_fatal_errors.

Auto Trait Implementations

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

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

impl<'a> Unpin for StringReader<'a>

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

impl<'a> !RefUnwindSafe 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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Erased for T[src]

impl<E> SpecializationError for E[src]