Trait linera_witty::wasmer::WasmerParameters
source · 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.
Object Safety§
This trait is not object safe.