Module taggedalgebraic.taggedalgebraic
Algebraic data type implementation based on a tagged union.
Functions
Name | Description |
apply(value)
|
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.
|
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.
|
Aliases
Name | Type | Description |
TypeEnum
|
UnionFieldEnum!U
|
|