|
Wasmtime
|
Describes the storage type and mutability of a struct field or array element. More...
#include <_structref_class.hh>
Public Member Functions | |
| FieldType (wasmtime_field_type ty) | |
| Constructs a field type from a C API field type. | |
| FieldType (const FieldType &other) | |
| Copy constructor. | |
| FieldType & | operator= (const FieldType &other) |
| Copy assignment operator. | |
| FieldType (FieldType &&other) | |
| Move constructor. | |
| FieldType & | operator= (FieldType &&other) |
| Move assignment operator. | |
| FieldType (bool is_mutable, const StorageType &ty) | |
| Constructs a field type with the given mutability and storage type. | |
| bool | is_mutable () const |
| Returns whether this field type is mutable. | |
| const StorageType & | storage_type () const |
| Returns the storage type of this field type. | |
| const wasmtime_field_type_t * | capi () const |
| Returns the underlying C API field type. | |
Static Public Member Functions | |
| static FieldType | mut_ (const StorageType &ty) |
| Constructs a mutable field type with the given storage type. | |
| static FieldType | const_ (const StorageType &ty) |
| Constructs an immutable field type with the given storage type. | |
Describes the storage type and mutability of a struct field or array element.