Wasmtime
wasmtime::RefType Class Reference

Representation of a reference type in WebAssembly. More...

#include <val.hh>

Public Member Functions

 RefType (const RefType &other)
 Copy constructor.
 
RefTypeoperator= (const RefType &other)
 Copy assignment operator.
 
 RefType (RefType &&other)
 Move constructor.
 
RefTypeoperator= (RefType &&other)
 Move assignment operator.
 
 RefType (bool nullable, const HeapType &heaptype)
 Constructs a reference type with the given nullability and heap type.
 
bool nullable () const
 Returns whether this reference type is nullable.
 
const HeapTypeheaptype () const
 Returns the heap type of this reference type.
 
const wasmtime_reftype_tcapi () const
 Returns the underlying C API reference type.
 

Static Public Member Functions

static RefType externref ()
 Convenience constructor for the wasm externref type.
 
static RefType nullexternref ()
 Convenience constructor for the wasm nullexternref type.
 
static RefType funcref ()
 Convenience constructor for the wasm funcref type.
 
static RefType nullfuncref ()
 Convenience constructor for the wasm nullfuncref type.
 
static RefType anyref ()
 Convenience constructor for the wasm anyref type.
 
static RefType eqref ()
 Convenience constructor for the wasm eqref type.
 
static RefType i31ref ()
 Convenience constructor for the wasm i31ref type.
 
static RefType arrayref ()
 Convenience constructor for the wasm arrayref type.
 
static RefType structref ()
 Convenience constructor for the wasm structref type.
 
static RefType nullref ()
 Convenience constructor for the wasm nullref type.
 
static RefType exnref ()
 Convenience constructor for the wasm exnref type.
 
static RefType nullexnref ()
 Convenience constructor for the wasm nullexnref type.
 

Detailed Description

Representation of a reference type in WebAssembly.


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