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