pub trait WasmtimeParameters {
type Parameters: WasmParams;
// Required methods
fn into_wasmtime(self) -> Self::Parameters;
fn from_wasmtime(parameters: Self::Parameters) -> Self;
}
Expand description
Conversions between flat layouts and Wasmtime parameter types.
Required Associated Types§
Sourcetype Parameters: WasmParams
type Parameters: WasmParams
The type Wasmtime uses to represent the parameters.
Required Methods§
Sourcefn into_wasmtime(self) -> Self::Parameters
fn into_wasmtime(self) -> Self::Parameters
Converts from this flat layout into Wasmtime’s representation.
Sourcefn from_wasmtime(parameters: Self::Parameters) -> Self
fn from_wasmtime(parameters: Self::Parameters) -> Self
Converts from Wasmtime’s representation into a flat layout.
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.