#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

#309 in Data structures

Download history 91/week @ 2025-10-19 88/week @ 2025-10-26 69/week @ 2025-11-02 81/week @ 2025-11-09 114/week @ 2025-11-16 110/week @ 2025-11-23 113/week @ 2025-11-30 486/week @ 2025-12-07 592/week @ 2025-12-14 493/week @ 2025-12-21 233/week @ 2025-12-28 445/week @ 2026-01-04 548/week @ 2026-01-11 316/week @ 2026-01-18 222/week @ 2026-01-25 252/week @ 2026-02-01

1,428 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