rc_arena
Documentation
Alternative to typed-arena that instead returns reference counted pointers
to the underlying objects, avoiding lifetime bounds but incurring a runtime penalty. Useful when you wish to create
a large number of Rc<T>
objects but want them close together in memory, or wish to avoid expensive allocations.
As with all arenas, it's also useful if you don't care about deallocation until after you're done with the entire collection of objects.
How do I use it?
Cargo.toml:
[]
= "0.1.0"
Code:
extern crate rc_arena;
use Arena;