Trait extism_convert::ToBytes
source · pub trait ToBytes<'a> {
type Bytes: AsRef<[u8]>;
// Required method
fn to_bytes(&self) -> Result<Self::Bytes, Error>;
}Expand description
ToBytes is used to define how a type should be encoded when working with
Extism memory. It is used for plugin input and host function output.