Trait wasmer_types::WasmValueType
source · [−]pub trait WasmValueType: Debug + 'static {
unsafe fn write_value_to(&self, p: *mut i128);
unsafe fn read_value_from(store: &dyn Any, p: *const i128) -> Self;
}
Expand description
Trait for reading and writing Wasm values into binary for use on the layer
between the API and the VM internals, specifically with wasmer_types::Value
.
Required Methods
unsafe fn write_value_to(&self, p: *mut i128)
unsafe fn write_value_to(&self, p: *mut i128)
Write the value
unsafe fn read_value_from(store: &dyn Any, p: *const i128) -> Self
unsafe fn read_value_from(store: &dyn Any, p: *const i128) -> Self
read the value