components-arena 3.2.2

Simple library for creating complex domain-specific self-referential data structures.
Documentation
1
2
3
4
5
6
7
8
9
10
11
impl<C: Component> Arena<C> {
    /// Creates an arena instance.
    pub const fn new() -> Self where C::Alloc: ~const Default {
        Self::new_in(Default::default())
    }

    /// Creates an arena instance with the specified initial capacity.
    pub fn with_capacity(capacity: usize) -> Self where C::Alloc: Default {
        Self::with_capacity_in(capacity, Default::default())
    }
}