Registry / utility / slotmap

slotmap

JSON →
library1.1.1rscratesunverified

Slotmap data structure for Rust, providing stable indices with O(1) access.

# Cargo.toml [dependencies] slotmap = "1.1.1"
INSTALL
IMPORT
SIG · SLOTMAP
S
slotmap
utilityrustv1.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SlotMap
use slotmap::SlotMap;

Create a slotmap and insert/retrieve a value.

use slotmap::SlotMap; fn main() { let mut sm: SlotMap<_, i32> = SlotMap::new(); let key = sm.insert(42); println!("{:?}", sm.get(key)); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
slotmap — cargo add slotmap · libregistry