serdeIgnoreIfAggregate.hasSerdeIgnoreCase

Checks at compile time whether a symbol has the `serdeIgnoreCase` user-defined attribute. (community summary)

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));