The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
SumType.this
std
sumtype
SumType
Constructs a
SumType
holding a specific value.
this
(T value)
this
(const(T) value)
this
(immutable(T) value)
this
(Value value)
this
(T value)
this
(const(T) value)
this
(immutable(T) value)
this
(Value value)
struct
SumType
(Types...)
inout
static if
(
isCopyable!(inout(T))
)
static if
(
IndexOf!(inout(T), Map!(InoutOf, Types)) == tid
)
this
(
Value
)
(
Value
value
)
if
(
is
(
Value
==
DeducedParameterType
!(
inout
(
T
)))
)
if
(
is
(
NoDuplicates
!
Types
==
Types
) &&
Types.length
> 0
)
this
(inout(SumType) other)
this
(SumType other)
this
(const(SumType) other)
this
(immutable(SumType) other)
Meta
Source
See Implementation
std
sumtype
SumType
aliases
Types
constructors
this
destructors
~this
functions
opAssign
opEquals
toHash
toString
Constructs a SumType holding a specific value.