pub fn decode<'a, T: Decode<'a>>(bytes: &'a [u8]) -> Result<T, Error>
Decodes a &[u8] into an instance of T: Decode.
&[u8]
T:
Decode
Warning: The format is subject to change between major versions.