Arena-rs
An arena memory pool for fast Rust heap allocations and dealocations.
This allows data to be allocated instantly and destroyed in batches.
Creating an Arena
let arena = new;
Allocating data
let value = arena.alloc?;
assert_eq!;
Deallocating data
// <- All data in arena is deallocated here
Saftey
let arena = new;
let value = arena.alloc?;
move_arena;
println!; // <- Compiler Error
// The arena was destroyed when we gave it to `move_arena`
// so we cannot use any data it gave to us