static enum Uda { a = 1, b = 2, c = 4 } @(Uda.a, Uda.c) static struct A {} static assert(BitmaskUda!(Uda, A) == (Uda.a | Uda.c));
See Implementation