isSumType.AliasThisType

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