Trait Reader

Source
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.

Required Methods§

Source

fn peek(&mut self, offset: usize) -> Option<char>

Source

fn consume(&mut self, amount: usize)

Source

fn clear(&mut self)

Source

fn to_string(&self) -> String

Implementors§