nulib ~master (2025-12-14T08:31:17.4307625)
Dub
Repo
SumType
nulib
data
sumtype
A sum type
struct
SumType (
Types
...
)
if
(
Types
.
length
> 0
) {
alias
AllowedTypes
=
Types
;
~this
();
this
(T value);
static if
(
isAssignable!T
)
SumType
opAssign
(T rhs);
}
Constructors
this
this
(T value)
Undocumented in source.
Destructor
~this
~this
()
Destructor
Members
Aliases
AllowedTypes
alias
AllowedTypes
=
Types
The types which the sumtype may contain
Functions
opAssign
SumType
opAssign
(T rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
Meta
Source
See Implementation
nulib
data
sumtype
enums
isSumType
structs
SumType
templates
canMatch
get
has
match
A sum type