Function BasicString.toHash

Calculates the hash value of string.

size_t toHash() const pure nothrow @nogc @safe;