pub fn deserialize<T: FromBytes>(bytes: Vec<u8>) -> Result<T, Error>Expand description
Deserializes bytes into an instance of T.
Returns an error if the bytes cannot be deserialized into T or if not all of the input bytes
are consumed in the operation.