phobos ~master (2024-10-03T07:50:27Z)
Dub
Repo
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)
struct
SumType
(Types...)
const
static if
(
isCopyable!(const(T))
)
static if
(
IndexOf!(const(T), Map!(ConstOf, Types)) == tid
)
this
(
const
(
T
)
value
)
if
(
is
(
NoDuplicates
!
Types
==
Types
) &&
Types.length
> 0
)
this
(immutable(T) value)
this
(Value value)
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.