pub trait InputStream {
    fn unget(&mut self, ch: char);
    fn get_next(&mut self) -> Option<char>;
    fn peek_next(&mut self) -> Option<char>;
}
Expand description

(internals) Trait that encapsulates a peekable character input stream. Exported under the internals feature only.

Required Methods

Un-get a character back into the InputStream. The next get_next or peek_next will return this character instead.

Get the next character from the InputStream.

Peek the next character in the InputStream.

Implementors