WordRead

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§

Source§

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

Source§

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

Source§

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

Available on crate feature alloc only.
Source§

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

Source§

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