Skip to content

Releases: LPGhatguy/thunderdome

v0.5.0

07 Oct 22:43
Compare
Choose a tag to compare

Changes Since 0.4.2

  • Moved iterator types into thunderdome::iter. (#24)
  • Changed Index::from_bits to return Option<Index> instead of Index, and no longer panic. (#31)

v0.4.2

07 Oct 21:57
Compare
Choose a tag to compare

Changes Since 0.4.1

  • Fixed miri warning for Arena::get2_mut. (#29)
  • Added Arena::insert_at and Arena::insert_at_slot for inserting into specific indexes or slots. (#30)

v0.4.1

24 Feb 20:27
Compare
Choose a tag to compare

Changes Since 0.4.0

  • Implemented IntoIterator for &Arena and &mut Arena. (#18)
  • Added Arena::get2_mut for getting two mutable references of different slots at once. (#22)

v0.4.0

17 Nov 17:43
Compare
Choose a tag to compare

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.

v0.2.0

07 Sep 17:19
Compare
Choose a tag to compare

Changes Since 0.1.1

  • Bumped MSRV to 1.34.1.
  • Reduced size of Index by limiting Arena to 2^32 elements and 2^32 generations per slot.
    • These limits should not be hit in practice, but will consistently trigger panics.
  • Changed generation counter to wrap instead of panic on overflow.
    • Collisions where an index using the same slot and a colliding generation on [1, 2^32] should be incredibly unlikely.

v0.1.1

07 Sep 17:19
Compare
Choose a tag to compare

Changes Since 0.1.0

  • Added Arena::with_capacity for preallocating space.
  • Added Arena::len, Arena::capacity, and Arena::is_empty.
  • Improved panic-on-wrap guarantees, especially around unsafe code.
  • Simplified and documented implementation.

v0.1.0

03 Sep 03:22
Compare
Choose a tag to compare
  • Initial release
  • Pretty much completely untested
  • You probably shouldn't use this version