Trait linera_witty::wasmtime::WasmtimeResults

source ·
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§

source

type Results: WasmResults

The type Wasmtime uses to represent the results.

Required Methods§

source

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

Converts from Wasmtime’s representation into a flat layout.

source

fn into_wasmtime(self) -> Self::Results

Converts from this flat layout into Wasmtime’s representation.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl WasmtimeResults for HNil

§

type Results = ()

source§

impl<T> WasmtimeResults for HCons<T, HNil>
where T: FlatType + WasmTy,

§

type Results = T