pub trait Decoder {
type Output;
type Error;
// Required method
fn decode(
&mut self,
buf: &mut Vec<u8>,
) -> Result<Option<Self::Output>, Self::Error>;
}Available on crate feature
alloc only.Expand description
Decode an item from a buffer of bytes.