LPGhatguy / thunderdome

Arena type inspired by generational-arena
Apache License 2.0
197 stars 15 forks source link

Use a safe technique to implement `.get2_mut()` #42

Closed CosmicHorrorDev closed 1 year ago

CosmicHorrorDev commented 1 year ago

Fixes #41

Uses the same technique that slab uses (as mentioned in https://github.com/LPGhatguy/thunderdome/issues/41#issuecomment-1487614744) with some slight tweaks to handle the generations right

CosmicHorrorDev commented 1 year ago

Thanks for all the cleanup! It looks a lot cleaner now :)