https://github.com/a248/hash-that-set
Hash a HashMap or HashSet itself in Rust -- Easy.
https://github.com/a248/hash-that-set
hash hashing rust
Last synced: 4 months ago
JSON representation
Hash a HashMap or HashSet itself in Rust -- Easy.
- Host: GitHub
- URL: https://github.com/a248/hash-that-set
- Owner: A248
- License: apache-2.0
- Created: 2023-09-11T23:21:49.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-09-11T23:26:52.000Z (almost 2 years ago)
- Last Synced: 2025-02-01T17:04:09.612Z (5 months ago)
- Topics: hash, hashing, rust
- Language: Rust
- Homepage: https://crates.io/crates/hash-that-set
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Hash That Set
[](https://crates.io/crates/hash-that-set)
[](https://www.gnu.org/licenses/license-recommendations.html)
[](https://docs.rs/hash-that-set)
[](https://github.com/rust-secure-code/safety-dance/)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:
```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.