Skip to content

v0.4.0

Compare
Choose a tag to compare
@LPGhatguy LPGhatguy released this 17 Nov 17:43
· 31 commits to main since this release

Changes Since 0.3.0

  • Added Index::slot for extracting the slot portion of an index.
  • Added Arena::contains_slot for checking whether a slot is occupied in a given Arena and resolving its Index if so.
  • Added Arena::get_by_slot and Arena::get_by_slot_mut for retrieving an entry by its slot, ignoring generation.
  • Added Arena::remove_by_slot for removing an entry by its slot, ignoring generation.
  • Added Arena::contains for checking whether an Index is valid for a given Arena.
  • Added Arena::retain for conveniently removing entries which do not satisfy a given predicate.
  • Fix Arena::iter_mut to return mutable references.