pub trait Unpacker: Sized {
type Error;
fn unpack_bytes<B: AsMut<[u8]>>(
&mut self,
bytes: B
) -> Result<(), Self::Error>;
fn ensure_bytes(&self, _len: usize) -> Result<(), Self::Error> { ... }
}
Expand description
A type that can unpack any value that implements Packable
.