Crate vec_arena[−][src]
👎 Deprecated since 1.2.0:
This crate is now deprecated in favor of slab.
A simple object arena.
Arena<T>
is basically just a Vec<Option<T>>
, which allows you to:
- Insert an object (reuse an existing
None
element, or append to the end). - Remove object at a specified index.
- Access object at a specified index.
Examples
Some data structures built using Arena<T>
:
Structs
Arena | Deprecated An object arena. |
IntoIter | Deprecated An iterator over the occupied slots in an |
Iter | Deprecated An iterator over references to the occupied slots in an |
IterMut | Deprecated An iterator over mutable references to the occupied slots in a |