pub trait Reader {
fn read(&mut self, bytes: &mut [u8]) -> Result<(), DecodeError>;
fn peek_read(&mut self, _: usize) -> Option<&[u8]> { ... }
fn consume(&mut self, _: usize) { ... }
}
Expand description
A reader for owned data. See the module documentation for more information.