Skip to content

A248/hash-that-set

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Hash a HashMap or HashSet itself in Rust -- Easy.

Topics

Resources

License

Stars

Watchers

Forks

Languages