Algebraic.AllowedTypes

Allowed types list

struct Algebraic(_Types...)
alias AllowedTypes = AliasSeq!(ReplaceTypeUnless!(isVariant, This, Algebraic!_Types, _UntaggedThisTypeSetList))

Examples

import std.meta: AliasSeq;

alias V = Nullable!
(
    This*,
    string,
    double,
    bool,
);

static assert(is(V.AllowedTypes == TypeSet!(
    typeof(null),
    bool,
    string,
    double,
    V*)));

See Also

Meta