[][src]Struct zeta::lexer::iterator::LexerIterator

pub struct LexerIterator<'a> {
    pub source_ref: SourceReference<'a>,
    pub body: Vec<char>,
    pub index: usize,
    pub length: usize,
    pub curr: char,
}

Fields

source_ref: SourceReference<'a>body: Vec<char>index: usizelength: usizecurr: 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]

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]