Trait WordWrite

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

    // Required methods
    fn write_word(&mut self, word: Self::Word) -> Result<(), Self::Error>;
    fn flush(&mut self) -> Result<(), Self::Error>;
}
Expand description

Sequential, streaming word-by-word writes.

Required Associated Types§

Source

type Error: Error + Send + Sync + 'static

Source

type Word: Word

The word type (the type of the argument of WordWrite::write_word).

Required Methods§

Source

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

Write a word and advance the current position.

Source

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

Flush the stream.

Implementors§