serdeIgnoreIfAggregate.hasSerdeIgnoreCase

struct serdeIgnoreIfAggregate(alias pred)
bool
hasSerdeIgnoreCase
(
T
)
()
if (
is(T == enum)
)

Examples

enum E
{
    @serdeIgnoreCase
    a,
    b,
    @serdeIgnoreCase
    c,
    d,
}

static assert(hasSerdeIgnoreCase(E.a));
static assert(!hasSerdeIgnoreCase(E.b));
static assert(hasSerdeIgnoreCase(E.c));
static assert(!hasSerdeIgnoreCase(E.d));
@serdeIgnoreCase
enum E
{
    a,
    b,
    c,
    d,
}

static assert(hasSerdeIgnoreCase(E.a));
static assert(hasSerdeIgnoreCase(E.b));
static assert(hasSerdeIgnoreCase(E.c));
static assert(hasSerdeIgnoreCase(E.d));

Meta