[][src]Module pui_arena::slab

a reimplementation of slab in terms of the generic arenas in base A reimplementation of slab in terms of the generic arenas in base

The module structure here is identical to crate::base, and you can look there for detailed documentation about the types. Each implementation of Slab will have all the methods from the corrosponding Arena, and those that take or produce generic keys will instead take/produce usize (which is type alised to Key).

In each module, you'll find an Slab newtype (with one public field), a VacantEntry newtype (again with one public field). These are thin wrappers around their generic counterparts. Their only serve the purpose of making error messages easier to parse, and use a default Key. You will also find a vareity of type aliases for various iterators, and for the default Key type for ease of use.

If you want to access the raw backing Arena/VacantEntry, you still can, it is the only public field of each slotmap/vacant entry.

Modules

dense

a dense slab

hop

a hop slab

sparse

a sparse slab