[−][src]Struct syntax::parse::lexer::StringReader
Fields
sess: &'a ParseSess
next_pos: BytePos
The absolute offset within the source_map of the next character to read
pos: BytePos
The absolute offset within the source_map of the current character
ch: Option<char>
The current character (which has been read from self.pos)
source_file: Lrc<SourceFile>
end_src_index: usize
Stop reading src at this index.
Methods
impl<'a> StringReader<'a>
[src]
impl<'a> StringReader<'a>
pub fn try_next_token(&mut self) -> Result<TokenAndSpan, ()> | [src] |
Return the next token. EFFECT: advances the string_reader.
pub fn real_token(&mut self) -> TokenAndSpan | [src] |
pub fn emit_fatal_errors(&mut self) | [src] |
pub fn buffer_fatal_errors(&mut self) -> Vec<Diagnostic> | [src] |
pub fn peek(&self) -> TokenAndSpan | [src] |
pub fn new( | [src] |
pub fn new_or_buffered_errs( | [src] |
pub fn retokenize(sess: &'a ParseSess, span: Span) -> Self | [src] |
Auto Trait Implementations
impl<'a> !Send for StringReader<'a>
impl<'a> !Send for StringReader<'a>
impl<'a> !Sync for StringReader<'a>
impl<'a> !Sync for StringReader<'a>
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<E> SpecializationError for E
[src]
impl<E> SpecializationError for E
impl<T> Erased for T
[src]
impl<T> Erased for T
impl<T> Send for T where
T: ?Sized,
[src]
impl<T> Send for T where
T: ?Sized,
impl<T> Sync for T where
T: ?Sized,
[src]
impl<T> Sync for T where
T: ?Sized,
impl<T> Erased for T
impl<T> Erased for T