Wasmtime
wasmtime::ExternType Class Reference

Generic type of a WebAssembly item. More...

#include <extern.hh>

Public Types

typedef std::variant< FuncType::Ref, GlobalType::Ref, TableType::Ref, MemoryType::RefRef
 Non-owning reference to an item's type. More...
 

Static Public Member Functions

static Ref from_import (ImportType::Ref ty)
 Extract the type of the item imported by the provided type.
 
static Ref from_export (ExportType::Ref ty)
 Extract the type of the item exported by the provided type.
 

Friends

class ExportType
 
class ImportType
 

Detailed Description

Generic type of a WebAssembly item.

Member Typedef Documentation

◆ Ref

Non-owning reference to an item's type.

This cannot be used after the original owner has been deleted, and otherwise this is used to determine what the actual type of the outer item is.


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