pub trait CharSource {
    fn next(&mut self) -> Result<Option<char>, Error>;
}
Available on crate feature master only.
Expand description

A source of master file characters.

This is very similar to an iterator except that next’s return value has the result outside for easier error handling.

Required Methods

Provides the next character in the source.

If the source runs out of characters, returns Ok(None).

Implementations on Foreign Types

Implementors