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§
type Error: Error + Send + Sync + 'static
Sourcetype Word: Word
type Word: Word
The word type (the type of the result of WordRead::read_word
).
Required Methods§
Implementors§
Source§impl<W: UnsignedInt + ToBytes + FromBytes + FiniteRangeNumber, B: Read> WordRead for WordAdapter<W, B>
impl<W: UnsignedInt + ToBytes + FromBytes + FiniteRangeNumber, B: Read> WordRead for WordAdapter<W, B>
Source§impl<W: Word, B: AsMut<Vec<W>>> WordRead for MemWordWriterVec<W, B>
Available on crate feature alloc
only.
impl<W: Word, B: AsMut<Vec<W>>> WordRead for MemWordWriterVec<W, B>
Available on crate feature
alloc
only.