#map #key-value #data #structure #cloneable #fwd

bidirectional-map

A two-way map data structure for small keys and values

5 releases

Uses old Rust 2015

0.1.4 Dec 10, 2020
0.1.3 Nov 19, 2020
0.1.2 Jan 1, 2019
0.1.1 Jan 1, 2019
0.1.0 Jan 1, 2019

#2041 in Data structures

26 downloads per month

MIT license

8KB
150 lines

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.


lib.rs:

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.

No runtime deps