Module wasm
Expand description
Wasm type and value types
Structs§
- Display
Func  - Implements a WAVE-formatted 
Displayfor aWasmFunc. - Display
Func Args  - Implements a WAVE-formatted 
DisplayforWasmValuefunc arguments. - Display
Func Results  - Implements a WAVE-formatted 
DisplayforWasmValuefunc results. - Display
Type  - Implements a WAVE-formatted 
Displayfor aWasmType. - Display
Value  - Implements a WAVE-formatted 
Displayfor 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. Thewasmtimecrate 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. Thewasmtimecrate provides an impl forwasmtime::component::Val. 
Functions§
- ensure_
type_ kind  - Returns an error if the given 
WasmTypeis not of the givenWasmTypeKind.