[−][src]Struct zeta::lexer::iterator::LexerIterator
Fields
source_ref: SourceReference<'a>
body: Vec<char>
index: usize
length: usize
curr: char
Methods
impl<'a> LexerIterator<'a>
[src]
pub fn new(source_ref: SourceReference<'a>) -> Self
[src]
pub fn advance_n(&mut self, n: usize) -> char
[src]
pub fn advance(&mut self) -> char
[src]
pub fn valid(&self) -> bool
[src]
pub fn peek_prev(&self) -> char
[src]
pub fn peek_next(&self) -> char
[src]
pub fn get_simple_err_region(&self) -> SourceRegion
[src]
pub fn get_attribution(&self, region: SourceRegion) -> SourceAttribution
[src]
pub fn warning(&mut self, region: SourceRegion, msg: String)
[src]
pub fn error(&mut self, region: SourceRegion, msg: String)
[src]
pub fn simple_warning(&mut self, msg: String)
[src]
pub fn simple_error(&mut self, msg: String)
[src]
Auto Trait Implementations
impl<'a> Send for LexerIterator<'a>
impl<'a> Unpin for LexerIterator<'a>
impl<'a> Sync for LexerIterator<'a>
impl<'a> RefUnwindSafe for LexerIterator<'a>
impl<'a> !UnwindSafe for LexerIterator<'a>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,