Crates.io | slots |
lib.rs | slots |
version | 0.4.0 |
source | src |
created_at | 2020-04-17 16:28:59.792227 |
updated_at | 2022-03-25 10:18:16.767005 |
description | Fixed size data structure with constant-time operations |
homepage | |
repository | https://github.com/bugadani/Slots |
max_upload_size | |
id | 231232 |
size | 34,167 |
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.
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)