bidirectional-map

Crates.iobidirectional-map
lib.rsbidirectional-map
version0.1.4
sourcesrc
created_at2019-01-01 05:10:45.06224
updated_at2020-12-10 07:40:35.512174
descriptionA two-way map data structure for small keys and values
homepage
repositoryhttps://github.com/nstoddard/bidirectional-map
max_upload_size
id104795
size8,150
Nathan Stoddard (nstoddard)

documentation

README

A two-way map data structure for cloneable keys and values.

Most functions come in _fwd and _rev variants, where the _fwd variant acts on the second entry given the first, and _rev is the opposite.

This crate is best for values that are cheap to clone, since internally it stores two copies of each element. To use it with large values, consider wrapping them in Rc to make them cheap to clone.

Commit count: 9

cargo fmt