3 releases (breaking)
|0.3.0||Sep 6, 2018|
|0.2.0||Sep 5, 2018|
|0.1.0||Aug 19, 2018|
12 downloads per month
An arena allocator.
The arena keeps every appended value in a fixed memory location, and only deallocates them all at once.
The arena also allows safe mutable access to the stored elements, through a
let arena = Arena::new(); let a = arena.append(0); let b = arena.append(1); assert_eq!(*arena.get(&a), 0); *arena.get_mut(&b) += 1; assert_eq!(*arena.get(&b), 2);
When a value is put into the Arena, it will stay there for the whole lifetime of the arena, and never move.