#contain-rs

vec_map

A simple map based on a vector for small integer keys

10 releases (breaking)

Uses old Rust 2015

0.8.2 May 6, 2020
0.8.1 May 11, 2018
0.8.0 May 8, 2017
0.7.0 Feb 27, 2017
0.3.0 Jul 11, 2015

#150 in Data structures

Download history 649785/week @ 2025-11-26 797692/week @ 2025-12-03 867031/week @ 2025-12-10 734292/week @ 2025-12-17 389791/week @ 2025-12-24 549883/week @ 2025-12-31 980354/week @ 2026-01-07 983910/week @ 2026-01-14 1134739/week @ 2026-01-21 1113177/week @ 2026-01-28 1097974/week @ 2026-02-04 980343/week @ 2026-02-11 1106394/week @ 2026-02-18 1267863/week @ 2026-02-25 1411258/week @ 2026-03-04 1066183/week @ 2026-03-11

5,023,260 downloads per month
Used in 10,255 crates (71 directly)

MIT/Apache

49KB
989 lines

A simple map based on a vector for small integer keys. Space requirements are O(highest integer key).


WARNING: THIS PROJECT IS IN MAINTENANCE MODE, DUE TO INSUFFICIENT MAINTAINER RESOURCES

It works fine, but will generally no longer be improved.

We are currently only accepting changes which:

  • keep this compiling with the latest versions of Rust or its dependencies.
  • have minimal review requirements, such as documentation changes (so not totally new APIs).

A simple map based on a vector for small integer keys.

Documentation is available at https://contain-rs.github.io/vec-map/vec_map.

Dependencies

~150KB