Function casper_types::bytesrepr::deserialize
source · [−]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.