Slab

Trait Slab 

Source
pub trait Slab<T>:
    Collection<Item = T>
    + Len
    + Get<usize> { }
Expand description

Imutable slab data structure.

A slab is a linear collection storing each element at a given index. The index of the element is allocated and returned upon insertion.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T, C: Collection<Item = T> + Len + Get<usize>> Slab<T> for C