How to detect enum member? struct A { enum id = 10; int b; char c; } foreach(ident; __traits(allMembers, A)) { // is ident enum or not? }