The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
TaggedUnion.set
taggedalgebraic
taggedunion
TaggedUnion
TaggedUnion
Sets a new value of the specified
kind
.
FieldTypes
[
kind
]
set
(FieldTypes[kind] value)
struct
TaggedUnion
ref
FieldTypes
[
kind
]
set
(
Kind
kind
)
(
FieldTypes
[
kind
]
value
)
if
(
!
isUnitType
!(
FieldTypes
[
kind
])
)
void
set
()
Meta
Source
See Implementation
taggedalgebraic
taggedunion
TaggedUnion
TaggedUnion
aliases
Kind
functions
opCast
opEquals
set
toHash
toString
properties
hasType
kind
value
Sets a new value of the specified kind.