Trait ParserInput

Source
pub trait ParserInput: Iterator<Item = TokenAndSpan> {
    // Required methods
    fn start_pos(&mut self) -> BytePos;
    fn last_pos(&mut self) -> BytePos;
    fn take_errors(&mut self) -> Vec<Error>;
}

Required Methods§

Source

fn start_pos(&mut self) -> BytePos

Source

fn last_pos(&mut self) -> BytePos

Source

fn take_errors(&mut self) -> Vec<Error>

Implementors§

Source§

impl<'a, I> ParserInput for Lexer<'a, I>
where I: Input<'a>,