# obj-pool [![Build Status](https://travis-ci.org/stjepang/vec-arena.svg?branch=master)](https://travis-ci.org/artemshein/obj-pool) [![License](https://img.shields.io/badge/license-Apache--2.0%2FMIT-blue.svg)](https://github.com/artemshein/obj-pool) [![Documentation](https://docs.rs/obj-pool/badge.svg)](https://docs.rs/obj-pool) #### What is this? A simple object arena. You want to build a doubly linked list? Or maybe a bidirectional tree? Perhaps an even more complicated object graph? Managing ownership and lifetimes might be tough then. Your options boil down to: 1. Use unsafe code to escape Rust's ownership rules. 2. Wrap every object in `Rc>`. 3. Use `Vec` to store objects, then access them using indices. If the last option seems most appealing to you, perhaps `ObjPool` is for you. It will provide a more convenient API than a plain `Vec`. #### Examples Some data structures built using `ObjPool`: * [Doubly linked list](https://github.com/artemshein/obj-pool/blob/master/examples/linked_list.rs) * [Splay tree](https://github.com/artemshein/obj-pool/blob/master/examples/splay_tree.rs)