keyed-set

Crates.iokeyed-set
lib.rskeyed-set
version1.1.0
created_at2022-11-08 15:05:53.530943+00
updated_at2025-09-03 17:39:15.544148+00
descriptionKeyed Set: a hashbrown-based HashSet that indexes based on projections of its elements.
homepage
repositoryhttps://github.com/p-avital/keyed-set-rs
max_upload_size
id708068
size23,299
Pierre Avital (p-avital)

documentation

README

Keyed Set: a hashbrown-based HashSet that indexes based on projections of its elements.

Ever wanted a HashMap<K, V>, but where V actually contains K (or at least can be projected to it)? Well this is it.

The easiest way to define a projection is through a closure that you pass at construction, but you may also define your own key extractors as ZSTs that implement Default to gain a Default constructor for your Keyed Sets.

Commit count: 16

cargo fmt