Trait fuel_types::bytes::Deserializable
source · pub trait Deserializable: Sized {
// Required method
fn from_bytes(bytes: &[u8]) -> Result<Self>;
}
Expand description
Describe the ability to deserialize the type from sets of bytes.
Required Methods§
sourcefn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Deserialization from variable length slices of bytes.