pub fn from_bytes<T: Decode>(bytes: &[u8]) -> Result<T, DecodeError>Expand description
Decodes a top-level value, rejecting trailing bytes.
ยงErrors
DecodeError for malformed input or trailing bytes.
pub fn from_bytes<T: Decode>(bytes: &[u8]) -> Result<T, DecodeError>Decodes a top-level value, rejecting trailing bytes.
DecodeError for malformed input or trailing bytes.