var.toHash

size_t toHash() const @safe

Compute a structural hash value consistent with opEquals.

Notes:

  • Floating-point NaNs are canonicalized to a single NaN bit pattern so that all NaNs hash equally.
  • +0.0 and -0.0 produce different hashes to remain consistent with opEquals.
  • For maps, keys are hashed in sorted order for determinism.