Module byte_slab::slab_arc[][src]

Expand description

A reference counted allocation

A SlabArc is obtained by consuming a SlabBox. As the underlying allocation may be shared, a SlabArc does not allow for the contents to be modified. SlabArcs may be cheaply cloned (which increases the reference count), allowing for multiple (immutable) access to the same data. The underlying memory is freed for reuse automatically when the reference count reaches zero.

Structs

A reference counted, BSlab allocated chunk of bytes.