Trait moore_common::lexer::Reader
source · [−]pub trait Reader {
fn peek(&mut self, offset: usize) -> Option<char>;
fn consume(&mut self, amount: usize);
fn clear(&mut self);
fn to_string(&self) -> String;
}
Expand description
A trait that can supply a peekable stream of characters.