orlp / slotmap

Slotmap data structure for Rust
zlib License
1.08k stars 70 forks source link

Make constructor methods const #85

Open alice-i-cecile opened 1 year ago

alice-i-cecile commented 1 year ago

This allows const constructors in upstream crates, and should be a trivial change.

orlp commented 1 year ago

I definitely should make them const where possible, not all of them can be though (e.g. SparseSecondaryMap can't be because HashMap::new isn't const).