pub trait WasmtimeResults: FlatLayout {
type Results: WasmResults;
// Required methods
fn from_wasmtime(results: Self::Results) -> Self;
fn into_wasmtime(self) -> Self::Results;
}
Expand description
Conversions between flat layouts and Wasmtime function result types.
Required Associated Types§
Sourcetype Results: WasmResults
type Results: WasmResults
The type Wasmtime uses to represent the results.
Required Methods§
Sourcefn from_wasmtime(results: Self::Results) -> Self
fn from_wasmtime(results: Self::Results) -> Self
Converts from Wasmtime’s representation into a flat layout.
Sourcefn into_wasmtime(self) -> Self::Results
fn into_wasmtime(self) -> Self::Results
Converts from this flat layout into Wasmtime’s representation.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.