toStringNonAliases

Faster implementation of std.conv.to for enumerations with no aliases.

@safe @safe pure nothrow @nogc
string
toStringNonAliases
(
T
)
(
const scope T value
)
if (
is(T == enum)
)

Examples

enum E { unknown, x, y, z, }
assert(E.x.toStringNonAliases == "x");
assert(E.y.toStringNonAliases == "y");
assert(E.z.toStringNonAliases == "z");

Meta