#table #table-id #array #array-map #id

no-std idmap

Efficient maps of integer id keys to values, backed by an underlying Vec

33 releases

0.3.5 Dec 29, 2025
0.3.2 Nov 28, 2025
0.3.0-alpha.2 Jul 27, 2025
0.2.21 Sep 6, 2021
0.2.3 Oct 29, 2017

#349 in Data structures

Download history 242/week @ 2025-12-27 388/week @ 2026-01-03 596/week @ 2026-01-10 303/week @ 2026-01-17 235/week @ 2026-01-24 276/week @ 2026-01-31 271/week @ 2026-02-07 170/week @ 2026-02-14 246/week @ 2026-02-21 232/week @ 2026-02-28 270/week @ 2026-03-07 385/week @ 2026-03-14 374/week @ 2026-03-21 324/week @ 2026-03-28 367/week @ 2026-04-04 340/week @ 2026-04-11

1,435 downloads per month
Used in intid

MIT/Apache

125KB
2.5K SLoC

idmap.rs

Efficient maps of integer id keys to values.

A DirectIdMap is a strongly typed wrapper around a Vec<Option<V>> lookup table, and the DirectIdSet is a similar wrapper around a bitset.

Part of the intid.rs set of crates.

Dependencies

~79–740KB
~12K SLoC