slots 0.4.0

Fixed size data structure with constant-time operations
Documentation

Slots crates.io build status codecov

This crate provides a heapless slab allocator with strict access control.

Slots implements a static friendly, fixed size, unordered data structure inspired by SlotMap. All operations are constant time.

Documentation

Features

  • Slots provide the runtime_checks feature that can be used to disable key owner verification. By default the feature is on and it is recommended to leave it enabled for development builds and disabled for release builds.

    Note: This feature requires atomic instructions, which are not generally available (for example, on ARM Cortex-M0 microcontrollers)