Expand description
Wasm type and value types
Structs§
- Display
Func - Implements a WAVE-formatted
Display
for aWasmFunc
. - Display
Func Args - Implements a WAVE-formatted
Display
forWasmValue
func arguments. - Display
Func Results - Implements a WAVE-formatted
Display
forWasmValue
func results. - Display
Type - Implements a WAVE-formatted
Display
for aWasmType
. - Display
Value - Implements a WAVE-formatted
Display
for aWasmValue
.
Enums§
- Wasm
Type Kind - The kind of a
WasmType
. These correspond to the value types defined by the Component Model design. - Wasm
Value Error - An error from creating a
WasmValue
.
Traits§
- Wasm
Func - The WasmFunc trait may be implemented to represent Wasm func type signatures to be (de)serialized with WAVE.
- Wasm
Type - The WasmType trait may be implemented to represent types to be
(de)serialized with WAVE, notably
value::Type
. Thewasmtime
crate provides an impl forwasmtime::component::Type
. - Wasm
Value - The WasmValue trait may be implemented to represent values to be
(de)serialized with WAVE, notably
value::Value
. Thewasmtime
crate provides an impl forwasmtime::component::Val
.
Functions§
- ensure_
type_ kind - Returns an error if the given
WasmType
is not of the givenWasmTypeKind
.