pub trait Reader {
// Required methods
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.