Wasmtime
wasmtime_component_valunion_t Union Reference

Represents possible runtime values which a component function can either consume or produce. More...

#include <val.h>

Data Fields

bool boolean
 Field used if wasmtime_component_val_t::kind is WASMTIME_COMPONENT_BOOL.
 
int8_t s8
 Field used if wasmtime_component_val_t::kind is WASMTIME_COMPONENT_S8.
 
uint8_t u8
 Field used if wasmtime_component_val_t::kind is WASMTIME_COMPONENT_U8.
 
int16_t s16
 Field used if wasmtime_component_val_t::kind is WASMTIME_COMPONENT_S16.
 
uint16_t u16
 Field used if wasmtime_component_val_t::kind is WASMTIME_COMPONENT_U16.
 
int32_t s32
 Field used if wasmtime_component_val_t::kind is WASMTIME_COMPONENT_S32.
 
uint32_t u32
 Field used if wasmtime_component_val_t::kind is WASMTIME_COMPONENT_U32.
 
int64_t s64
 Field used if wasmtime_component_val_t::kind is WASMTIME_COMPONENT_S64.
 
uint64_t u64
 Field used if wasmtime_component_val_t::kind is WASMTIME_COMPONENT_U64.
 
float32_t f32
 Field used if wasmtime_component_val_t::kind is WASMTIME_COMPONENT_F32.
 
float64_t f64
 Field used if wasmtime_component_val_t::kind is WASMTIME_COMPONENT_F64.
 
uint32_t character
 Field used if wasmtime_component_val_t::kind is WASMTIME_COMPONENT_CHAR.
 
wasm_name_t string
 
wasmtime_component_vallist_t list
 Field used if wasmtime_component_val_t::kind is WASMTIME_COMPONENT_LIST.
 
wasmtime_component_valrecord_t record
 
wasmtime_component_valtuple_t tuple
 Field used if wasmtime_component_val_t::kind is WASMTIME_COMPONENT_TUPLE.
 
wasmtime_component_valvariant_t variant
 
wasm_name_t enumeration
 Field used if wasmtime_component_val_t::kind is WASMTIME_COMPONENT_ENUM.
 
struct wasmtime_component_valoption
 
wasmtime_component_valresult_t result
 
wasmtime_component_valflags_t flags
 Field used if wasmtime_component_val_t::kind is WASMTIME_COMPONENT_FLAGS.
 

Detailed Description

Represents possible runtime values which a component function can either consume or produce.

Field Documentation

◆ option

struct wasmtime_component_val* wasmtime_component_valunion_t::option

◆ record

wasmtime_component_valrecord_t wasmtime_component_valunion_t::record

◆ result

wasmtime_component_valresult_t wasmtime_component_valunion_t::result

◆ string

wasm_name_t wasmtime_component_valunion_t::string

◆ variant

wasmtime_component_valvariant_t wasmtime_component_valunion_t::variant

The documentation for this union was generated from the following file: