BigFixed.toHash

Implement toHash so that BigFixed works properly as an AA key.

struct BigFixed
const @safe nothrow
size_t
toHash
()

Examples

string[BigFixed] aa;
aa[BigFixed(123, 10)] = "abc";
aa[BigFixed(456, 10)] = "def";
aa[BigFixed(456, 5)] = "ghi";

assert(aa[BigFixed(123, 10)] == "abc");
assert(aa[BigFixed(456, 10)] == "def");
assert(aa[BigFixed(456, 5)] == "ghi");

Meta