my ~master (2022-05-17T07:50:13Z)
Dub
Repo
isSumType.AliasThisType
sumtype
isSumType
Undocumented in source.
template
isSumType
(T)
static if
(!(
is(T : SumType!Args, Args...)
))
static if
(
is(T == struct) && __traits(getAliasThis, T).length > 0
)
alias
AliasThisType
=
ReturnType
!(
(
T
t
)
=> __traits(
getMember
,
t
, __traits(
getAliasThis
,
T
)[0])
)
Meta
Source
See Implementation
sumtype
isSumType
aliases
AliasThisType
manifest constants
isSumType