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§

source§

impl<W: UnsignedInt + ToBytes + FromBytes + FiniteRangeNumber, B: Read> WordRead for WordAdapter<W, B>

§

type Error = Error

§

type Word = W

source§

impl<W: Word, B: AsMut<[W]>> WordRead for MemWordWriterSlice<W, B>

§

type Error = Error

§

type Word = W

source§

impl<W: Word, B: AsMut<Vec<W>>> WordRead for MemWordWriterVec<W, B>

§

type Error = Error

§

type Word = W

source§

impl<W: Word, B: AsRef<[W]>> WordRead for MemWordReader<W, B, false>

§

type Error = Error

§

type Word = W

source§

impl<W: Word, B: AsRef<[W]>> WordRead for MemWordReader<W, B, true>

§

type Error = Infallible

§

type Word = W