pub trait Decode<T> {
// Required method
fn decode(&mut self, tag: Tag, input: &mut &[u8]) -> Result<T, Error>;
}
Expand description
Try to decode a field to a value of the given type.
This trait is intended to be impl’d by the Decoder
type.