Trait WordRead

Source
pub trait WordRead {
    type Error: Error + Send + Sync + 'static;
    type Word: Word;

    // Required method
    fn read_word(&mut self) -> Result<Self::Word, Self::Error>;
}
Expand description

Sequential, streaming word-by-word reads.

Required Associated Types§

Source

type Error: Error + Send + Sync + 'static

Source

type Word: Word

The word type (the type of the result of WordRead::read_word).

Required Methods§

Source

fn read_word(&mut self) -> Result<Self::Word, Self::Error>

Read a word and advance the current position.

Implementors§