[][src]Function casperlabs_types::bytesrepr::deserialize

pub fn deserialize<T: FromBytes>(bytes: Vec<u8>) -> Result<T, Error>

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.