Hacker News new | ask | show | jobs
by gpm 1422 days ago
Better than a hash map of ids/values is to use slotmap, a library that handles everything safely for you (with generation indexing and free lists behind the scenes).

https://crates.io/crates/slotmap