pub fn deserialize<T: Decodable>(data: &[u8]) -> Result<T, Error>
Expand description

Deserialize an object from a byte vector, will error if said deserialization doesn’t consume the entire vector.