Trait extism_convert::FromBytes
source · pub trait FromBytes<'a>: Sized {
// Required method
fn from_bytes(data: &'a [u8]) -> Result<Self, Error>;
}Expand description
FromBytes is used to define how a type should be decoded when working with
Extism memory. It is used for plugin output and host function input.
Required Methods§
sourcefn from_bytes(data: &'a [u8]) -> Result<Self, Error>
fn from_bytes(data: &'a [u8]) -> Result<Self, Error>
Decode a value from a slice of bytes
Object Safety§
This trait is not object safe.