|
Wasmtime
|
Class representing a component model option value.
More...
#include <val.hh>
Public Member Functions | |
| WitOption (Raw &&capi) | |
| WitOption (const WitOption &other) | |
Copy constructor to clone other. More... | |
| WitOption & | operator= (const WitOption &other) |
Copy assignment to clone from other. More... | |
| WitOption (WitOption &&other) | |
Move constructor to move the contents of other. More... | |
| WitOption & | operator= (WitOption &&other) |
Move assignment to move the contents of other. More... | |
| const Raw * | capi () const |
| Returns a pointer to the underlying C API representation. More... | |
| WitOption (std::optional< Val > val) | |
| Constructs a new option value with the provided value. | |
| const Val * | value () const |
| Returns the optional payload value associated with this option. | |
Static Public Member Functions | |
| static const WitOption * | from_capi (const Raw *capi) |
| static WitOption * | from_capi (Raw *capi) |
| static const Raw * | to_capi (const WitOption *capi) |
| static Raw * | to_capi (WitOption *capi) |
Friends | |
| class | Val |
Class representing a component model option value.
|
inlineexplicit |
|
inline |
Copy constructor to clone other.
|
inline |
Move constructor to move the contents of other.
|
inline |
Returns a pointer to the underlying C API representation.
Copy assignment to clone from other.
Move assignment to move the contents of other.