|
Wasmtime
|
Class representing a component model variant value.
More...
#include <val.hh>
Public Member Functions | |
| Variant (Raw &&capi) | |
| Variant (const Variant &other) | |
Copy constructor to clone other. More... | |
| Variant & | operator= (const Variant &other) |
Copy assignment to clone from other. More... | |
| Variant (Variant &&other) | |
Move constructor to move the contents of other. More... | |
| Variant & | operator= (Variant &&other) |
Move assignment to move the contents of other. More... | |
| const Raw * | capi () const |
| Returns a pointer to the underlying C API representation. More... | |
| Variant (std::string_view discriminant, std::optional< Val > x) | |
| Constructs a new variant value with the provided discriminant and payload. | |
| std::string_view | discriminant () const |
| Returns the name of the discriminant of this value. | |
| const Val * | value () const |
| Returns the optional payload value associated with this variant value. | |
Static Public Member Functions | |
| static const Variant * | from_capi (const Raw *capi) |
| static Variant * | from_capi (Raw *capi) |
| static const Raw * | to_capi (const Variant *capi) |
| static Raw * | to_capi (Variant *capi) |
Friends | |
| class | Val |
Class representing a component model variant 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.