|
Wasmtime
|
Represents a single item in a component's import or export list. More...
#include <component.hh>
Public Member Functions | |
| ComponentItem (wasmtime_component_item_t &&item) | |
| Creates a component item from the raw C API representation. | |
| ComponentItem (const ComponentItem &other) | |
| Copies another item into this one. | |
| ComponentItem & | operator= (const ComponentItem &other) |
| Copies another item into this one. | |
| ComponentItem (ComponentItem &&other) | |
| Moves another item into this one. | |
| ComponentItem & | operator= (ComponentItem &&other) |
| Moves another item into this one. | |
| bool | is_component () const |
| Returns true if this is a component. | |
| bool | is_component_instance () const |
| Returns true if this is a component instance. | |
| bool | is_module () const |
| Returns true if this is a module. | |
| bool | is_component_func () const |
| Returns true if this is a component function. | |
| bool | is_resource () const |
| Returns true if this is a resource. | |
| bool | is_core_func () const |
| Returns true if this is a core function. | |
| bool | is_type () const |
| Returns true if this is a type. | |
| const ComponentType & | component () const |
| const ComponentInstanceType & | component_instance () const |
| const ModuleType & | module () const |
| const FuncType & | component_func () const |
| const ResourceType & | resource () const |
| wasmtime::FuncType::Ref | core_func () const |
| const ValType & | type () const |
Represents a single item in a component's import or export list.
|
inline |
Returns the component type this item represents, asserting that this is indeed a component.
|
inline |
Returns the component function type this item represents, asserting that this is indeed a component function.
|
inline |
Returns the component instance type this item represents, asserting that this is indeed a component instance.
|
inline |
Returns the core function type this item represents, asserting that this is indeed a core function.
|
inline |
Returns the module type this item represents, asserting that this is indeed a module.
|
inline |
Returns the resource type this item represents, asserting that this is indeed a resource.
|
inline |
Returns the type this item represents, asserting that this is indeed a type.