Struct chunky::MultiArena[][src]

pub struct MultiArena<H: Handler> { /* fields omitted */ }

Based on a collection type for fixed-size items ("Bin"), creates a collection for heterogenously-sized items which will be stored in the most appropriately-sized bin.

All Bins will use children of a main chunker to create their chunks.

Methods

impl<H: Handler> MultiArena<H>
[src]

Create a new MultiArena collection using Arena bins and a base size that represents the smallest expected item size (used as the item size of the smallest-sized bin)

Get the index of the Bin which stores items of size size

Get an (untyped) pointer to the item at the given index

Get an (untyped) mutable pointer to the item at the given index

Add an item to the end of the bin corresponding to its size

Remove the item referenced by index from its bin by swapping with the bin's last item

Return indices of bins that actually contain items and their respective lengths

Get the length of the bin of the given bin index

Auto Trait Implementations

impl<H> !Send for MultiArena<H>

impl<H> !Sync for MultiArena<H>