nxt.enum_ex

Undocumented in source.

Members

Functions

toStringFromEnumThatMimicsPhobos
string toStringFromEnumThatMimicsPhobos(T v)

Convert enumerator value v to string.

toStringFromEnumWithConsecutiveAliases
string toStringFromEnumWithConsecutiveAliases(T value)

Fast and more generic implementation of std.conv.to for enumerations. TODO: Handle non-adjacent enumerator aliases.

toStringFromEnumWithNoAliases
string toStringFromEnumWithNoAliases(T value)

Faster implementation of std.conv.to for enumerations with no aliases. Will error if aliases are present.

Structs

Enum
struct Enum(E)

Enumeration wrapper that uses optimized conversion to string (via toString member).

Meta