Constructor
Frees the memory stored in the variant.
Gets the content of the variant.
Gets whether the variant contains the given type.
Allows assigning the variant to a value.
Gets whether the variant is the same as another variant.
Tries to get the content of the variant.
An empty variant.
Whether the variant is empty.
Whether the variant has data.
A type which can contain any type in the language, stored on the heap.
Note: The ownership of a variant depends on the API, the Variant itself does not own its memory. You may call the free method to free any memory owned by the variant.