Wasmtime
wasmtime::FieldType Class Reference

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.
 
FieldTypeoperator= (const FieldType &other)
 Copy assignment operator.
 
 FieldType (FieldType &&other)
 Move constructor.
 
FieldTypeoperator= (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 StorageTypestorage_type () const
 Returns the storage type of this field type.
 
const wasmtime_field_type_tcapi () 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.
 

Detailed Description

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


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