Enumeration wrapper that uses optimized conversion to string (via toString member).
enum X { a, b, } alias EnumX = Enum!X; assert(EnumX(X.a).toString == "a"); assert(EnumX(X.b).toString == "b");
https://forum.dlang.org/thread/ppndhxvzayedgpbjculm@forum.dlang.org?page=1
TODO: Move logic to std.conv.to.
See Implementation
Enumeration wrapper that uses optimized conversion to string (via toString member).