wasm_wave

Module wasm

Source
Expand description

Wasm type and value types

Structs§

DisplayFunc
Implements a WAVE-formatted Display for a WasmFunc.
DisplayFuncArgs
Implements a WAVE-formatted Display for WasmValue func arguments.
DisplayFuncResults
Implements a WAVE-formatted Display for WasmValue func results.
DisplayType
Implements a WAVE-formatted Display for a WasmType.
DisplayValue
Implements a WAVE-formatted Display for a WasmValue.

Enums§

WasmTypeKind
The kind of a WasmType. These correspond to the value types defined by the Component Model design.
WasmValueError
An error from creating a WasmValue.

Traits§

WasmFunc
The WasmFunc trait may be implemented to represent Wasm func type signatures to be (de)serialized with WAVE.
WasmType
The WasmType trait may be implemented to represent types to be (de)serialized with WAVE, notably value::Type. The [wasmtime] crate provides an impl for [wasmtime::component::Type].
WasmValue
The WasmValue trait may be implemented to represent values to be (de)serialized with WAVE, notably value::Value. The wasmtime crate provides an impl for [wasmtime::component::Val].

Functions§

ensure_type_kind
Returns an error if the given WasmType is not of the given WasmTypeKind.