Function toHash

Simple hash function for enumeration name

static ulong toHash (
  string name
) pure nothrow @nogc;