Crate vec_arena

Crate vec_arena 

Source
👎Deprecated since 1.2.0: This crate is now deprecated in favor of slab.
Expand description

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§

ArenaDeprecated
An object arena.
IntoIterDeprecated
An iterator over the occupied slots in an Arena.
IterDeprecated
An iterator over references to the occupied slots in an Arena.
IterMutDeprecated
An iterator over mutable references to the occupied slots in a Arena.