16 releases

0.7.4 Apr 1, 2024
0.7.1 Oct 24, 2023
0.6.0 Jan 22, 2023
0.5.0 Aug 25, 2022
0.2.0 Nov 24, 2018

#173 in Data structures

Download history 273358/week @ 2024-08-04 307850/week @ 2024-08-11 301364/week @ 2024-08-18 290254/week @ 2024-08-25 290104/week @ 2024-09-01 285996/week @ 2024-09-08 280480/week @ 2024-09-15 312662/week @ 2024-09-22 310374/week @ 2024-09-29 312747/week @ 2024-10-06 334802/week @ 2024-10-13 345095/week @ 2024-10-20 343395/week @ 2024-10-27 348544/week @ 2024-11-03 354898/week @ 2024-11-10 329577/week @ 2024-11-17

1,396,059 downloads per month
Used in 357 crates (6 directly)

MIT license

165KB
3.5K SLoC

ordered-multimap-rs

Crates.io Docs.rs CI

Currently, this crate contains a single type ListOrderedMultimap. This is a multimap meaning that multiple values can be associated with a given key, but it also maintains insertion order across all keys and values.

Documentation

Performance

Basic benchmarks show that the performance of this crate is on par with that of the multimap crate which does not maintain insertion order.

Features

  • std (default) enables usage of the standard library. Disabling this features allows this crate to be used in no_std environments.
  • serde for (de)serialization.

TODO

It is planned that a corresponding SetOrderedMultimap will also be included in this crate which will provide the same insertion order guarantees, but the set of values associated to a given key will be an actual set instead of a list.

License

Licensed under MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT).

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be licensed as above, without any additional terms or conditions.

See CONTRIBUTING.md.

Dependencies

~1–1.3MB
~21K SLoC