https://github.com/bugadani/slots
Fixed size data structure with constant-time operations.
https://github.com/bugadani/slots
Last synced: about 1 year ago
JSON representation
Fixed size data structure with constant-time operations.
- Host: GitHub
- URL: https://github.com/bugadani/slots
- Owner: bugadani
- License: mit
- Created: 2020-04-17T16:14:24.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-25T10:17:59.000Z (about 4 years ago)
- Last Synced: 2025-04-25T14:07:36.909Z (about 1 year ago)
- Language: Rust
- Homepage:
- Size: 138 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Slots [](https://crates.io/crates/slots)  [](https://codecov.io/gh/bugadani/Slots)
=====
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](https://docs.rs/slots/)
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)*