hash-that-set 0.1.0

Implements hashing for sets and maps themselves. Enables a map of maps to values, or a map of sets to values.
Documentation
  • Coverage
  • 100%
    17 out of 17 items documented1 out of 14 items with examples
  • Size
  • Source code size: 24.82 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.2 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • A248/hash-that-set
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • A248

Hash That Set

crates.io version apache2 license docs.rs docs unsafe forbidden

Implements hashing for HashSet or HashMap themselves. Enables a map of maps to values, or a map of sets to values.

Library Usage

Wherever a hashable HashSet or HashMap is needed, wrap it in a SumHashes.

If you have unordered collections from third-party crates, wrap them in SumHashesAnyCollection, which uses the default hasher per-element.

Safety

  • The library contains no unsafe code
  • The library should never panic

Dependency

Add this library to your Cargo.toml:

[dependencies]
hash-that-set = "0.1"

Notes

If you ever happen to notice a place where a standard trait could be implemented, please open an issue or PR in this repository.

Licensing

Licensed under the Apache License v2.0. See the LICENSE.txt.