Opens a subcontainer inside the given builder. When done adding
items to the subcontainer, Variant.builderClose must be called. type
is the type of the container: so to build a tuple of several values, type
must include the tuple itself.
It is an error to call this function in any way that would cause an
inconsistent value to be constructed (ie: adding too many values or
a value of an incorrect type).
Opens a subcontainer inside the given builder. When done adding items to the subcontainer, Variant.builderClose must be called. type is the type of the container: so to build a tuple of several values, type must include the tuple itself.
It is an error to call this function in any way that would cause an inconsistent value to be constructed (ie: adding too many values or a value of an incorrect type).
Example of building a nested variant: