Wasmtime
wasmtime_field_type Struct Reference

Describes the type and mutability of a struct field or array element. More...

#include <gc.h>

Data Fields

wasmtime_storage_kind_t kind
 
bool mutable_
 

Detailed Description

Describes the type and mutability of a struct field or array element.

Field Documentation

◆ kind

wasmtime_storage_kind_t wasmtime_field_type::kind

The storage type of this field. Use WASMTIME_I32, WASMTIME_I64, WASMTIME_F32, etc. for value types, or WASMTIME_STORAGE_KIND_I8 / WASMTIME_STORAGE_KIND_I16 for packed types.

◆ mutable_

bool wasmtime_field_type::mutable_

Whether this field is mutable. true for mutable, false for immutable.


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