The OpenD Programming Language

isResultVariant

Checks if T is a Variant with at least one allowed type that satisfy isErr traits.

template isResultVariant (
T
) {
static if(is(immutable T == immutable Algebraic!Types, Types...))
enum isResultVariant;
static if(!(is(immutable T == immutable Algebraic!Types, Types...)))
enum isResultVariant;
}

Meta