pub trait WasmerParameters: FlatLayout {
type ImportParameters;
type ExportParameters;
// Required methods
fn into_wasmer(self) -> Self::ImportParameters;
fn from_wasmer(parameters: Self::ExportParameters) -> Self;
}
Expand description
Conversions between flat layouts and Wasmer parameter types.
Required Associated Types§
Sourcetype ImportParameters
type ImportParameters
The type Wasmer uses to represent the parameters in a function imported from a guest.
Sourcetype ExportParameters
type ExportParameters
The type Wasmer uses to represent the parameters in a function exported from a host.
Required Methods§
Sourcefn into_wasmer(self) -> Self::ImportParameters
fn into_wasmer(self) -> Self::ImportParameters
Converts from this flat layout into Wasmer’s representation for functions imported from a guest.
Sourcefn from_wasmer(parameters: Self::ExportParameters) -> Self
fn from_wasmer(parameters: Self::ExportParameters) -> Self
Converts from Wasmer’s representation for functions exported from the host into this 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.