spasm v0.2.0-beta.8 (2020-09-12T08:27:15Z)
Dub
Repo
SumType.this
spasm
sumtype
SumType
Constructs a
SumType
holding a specific value.
this
(T value)
this
(const(T) value)
this
(immutable(T) value)
struct
SumType
(TypeArgs...)
immutable
static if
(
isCopyable!T
)
this
()
(
auto
ref
immutable
(
T
)
value
)
if
(
is
(
NoDuplicates
!
TypeArgs
==
TypeArgs
) &&
TypeArgs.length
> 0
)
this
(const(T) value)
this
(immutable(T) value)
this
(SumType other)
this
(const(SumType) other)
this
(immutable(SumType) other)
this
()
Meta
Source
See Implementation
spasm
sumtype
SumType
aliases
Types
constructors
this
destructors
~this
functions
opAssign
opEquals
toString
trustedGet
postblits
this(this)
Constructs a SumType holding a specific value.