slotmap
slotmap copied to clipboard
Slotmap data structure for Rust
In #89, @orlp says that he intends to work on a 2.0 but there is no current timeline. I was wondering if there's interest in some patches to the current...
Running the doc test code, i.e. ```rs fn main() { use slotmap::*; let mut sm = SlotMap::new(); let ka = sm.insert("butter"); let kb = sm.insert("apples"); let kc = sm.insert("charlie"); sm.remove(kc);...
Rust has a relatively new unstable attribute for embedding debugger visualization info. Something like that would be useful to provide with slotmap. See https://rust-lang.github.io/rfcs/3191-debugger-visualizer.html
An investigation is necessary to see if we can safely allow customization of key sizes. Something along the following lines should work: ```rust pub trait Key { type Index: KeyIndex;...
Hello, First of all, I would like to thank you for developing this great library. Now, I am in need of a function that allows me to reassign old keys...
Is this possible? Or is there an easy way to extend slotmap or write a new type of slotmap that supports this? ```rs let mut thing = slotmap::SlotMap::new(); let a...
I'm working on a project right now where I'd like to temporarily construct a dense slot map, use it for a while, then convert all my keys to indices and...
Since there is a 1.0 release, it seems reasonable to build against that. This will also reduce the delta we need for the Debian package, which currently patches the dependency.
Minor comments about evenness/oddness to help understandability.
This allows const constructors in upstream crates, and should be a trivial change.