linera_witty::wasmer

Trait WasmerResults

Source
pub trait WasmerResults: FlatLayout {
    type Results: WasmTypeList;

    // Required methods
    fn from_wasmer(results: Self::Results) -> Self;
    fn into_wasmer(self) -> Self::Results;
}
Expand description

Conversions between flat layouts and Wasmer function result types.

Required Associated Types§

Source

type Results: WasmTypeList

The type Wasmer uses to represent the results.

Required Methods§

Source

fn from_wasmer(results: Self::Results) -> Self

Converts from Wasmer’s representation into a flat layout.

Source

fn into_wasmer(self) -> Self::Results

Converts from this flat layout into Wasmer’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.

Implementors§