Module taggedalgebraic.taggedalgebraic
Algebraic data type implementation based on a tagged union.
Functions
Name | Description |
algebraic(tagged_union)
|
Converts a given TaggedUnion to a TaggedAlgebraic .
|
apply(ta)
|
Calls a the given callback with the static type of the contained value.
|
disableIndex()
|
User-defined attibute to disable opIndex forwarding for a particular tagged union member.
|
get(ta)
|
Gets the value stored in an algebraic type based on its data type.
|
get(ta)
|
Gets the value stored in an algebraic type based on its kind.
|
hasType(ta)
|
Tests if the algebraic type stores a value of a certain data type.
|
Structs
Name | Description |
TaggedAlgebraic
|
Implements a generic algebraic type using an enum to identify the stored type.
|
Enums
Name | Description |
safeOnly
|
User-defined attribute to enable only safe calls on the given member(s).
|
Aliases
Name | Type | Description |
TypeEnum
|
UnionFieldEnum!U
|
|