1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! This crate provides a heapless, fixed size, unordered data structure, inspired by SlotMap.
//!
//! The following basic operations (all of them `O(1)`) are defined for Slots:
//! - Store: store data and retrieve a handle for later access
//! - Read, modify: use the given handle to access the data without removal
//! - Take: use the given handle to remove data
//!
//! There are two variations of this data structure:
//!  * [`Slots`][crate::slots], where elements can only be modified using a `Key` that can't be copied
//!  * [`UnrestrictedSlots`][crate::unrestricted], where elements are free to be modified by anyone

#![cfg_attr(not(test), no_std)]

pub mod iterator;
mod private;
pub mod slots;
pub mod unrestricted;