pub trait ByteSource: Sealed {
type ReadError: ByteSourceErr;
// Required method
fn read_byte(&mut self) -> Result<u8, Self::ReadError>;
}
Expand description
Helper trait that allows reading individual bytes
Required Associated Types§
Sourcetype ReadError: ByteSourceErr
type ReadError: ByteSourceErr
Type of errors that can occur while reading bytes
Required Methods§
Implementors§
Source§impl<'i> ByteSource for SliceReader<'i>
impl<'i> ByteSource for SliceReader<'i>
Source§impl<I, B> ByteSource for IterReader<I, B>
impl<I, B> ByteSource for IterReader<I, B>
Source§impl<R> ByteSource for IoReader<R>where
R: Read,
Available on crate feature std
only.
impl<R> ByteSource for IoReader<R>where
R: Read,
Available on crate feature
std
only.