Trait casper_types::bytesrepr::FromBytes
source · pub trait FromBytes: Sized {
// Required method
fn from_bytes(bytes: &[u8]) -> Result<(Self, &[u8]), Error>;
// Provided method
fn from_vec(bytes: Vec<u8>) -> Result<(Self, Vec<u8>), Error> { ... }
}
Expand description
A type which can be deserialized from a Vec<u8>
.
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.