Trait rhai::InputStream
source · pub trait InputStream {
// Required methods
fn unget(&mut self, ch: char);
fn get_next(&mut self) -> Option<char>;
fn peek_next(&mut self) -> Option<char>;
// Provided method
fn eat_next_and_advance(&mut self, pos: &mut Position) -> Option<char> { ... }
}
Expand description
(internals) Trait that encapsulates a peekable character input stream.
Exported under the internals
feature only.
Required Methods§
Provided Methods§
sourcefn eat_next_and_advance(&mut self, pos: &mut Position) -> Option<char>
fn eat_next_and_advance(&mut self, pos: &mut Position) -> Option<char>
Consume the next character.