3 ms·
Author of slotmap here. There is absolutely no need for unsafe in slotmap. I chose to use unsafe (wrapped in a safe API) to reduce memory usage using intrusive
by orlp 3y ago
Author of slotmap here.
There is absolutely no need for unsafe in slotmap. I chose to use unsafe (wrapped in a safe API) to reduce memory usage using intrusive linked freelists.
If done using safe Rust this would involve `enum`s that would take up extra space.