trove 0.1.0

Simple arena allocator
Documentation

Trove

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 unsafe mutable access to the stored elements, handle with care!

Example

let arena = Arena::new();

let a = arena.append(0);
let b = arena.append(1);

assert_eq!(*arena.get(&a), 0);

unsafe {
    *arena.get_mut(&b) += 1;
}

assert_eq!(*arena.get(&b), 2);