linera_witty::wasmtime

Trait 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.

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§

Source§

impl WasmtimeResults for HNil

Source§

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