pub trait WordRead {
    type Error: Error;
    type Word: UnsignedInt;

    // 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

source

type Word: UnsignedInt

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, B: AsMut<[W]>> WordRead for MemWordWriterSlice<W, B>

§

type Error = Error

§

type Word = W

source§

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

§

type Error = Error

§

type Word = W

source§

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

§

type Error = Error

§

type Word = W

source§

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

§

type Error = Infallible

§

type Word = W

source§

impl<W: UnsignedInt, B: Read> WordRead for WordAdapter<W, B>

§

type Error = Error

§

type Word = W