stable_map/
lib.rs

1//! A hash map with temporarily-stable indices.
2//!
3//! This crate provides a hash map where each key is associated with an index. This index
4//! remains stable unless the user explicitly compacts the map. This allows for concurrent
5//! iteration over and modification of the map.
6
7#![no_std]
8extern crate alloc;
9
10mod clone;
11mod debug;
12mod default;
13mod drain;
14mod entry;
15mod eq;
16mod extend;
17mod from;
18mod from_iterator;
19mod index;
20mod into_iter;
21mod into_keys;
22mod into_values;
23mod iter;
24mod iter_mut;
25mod keys;
26mod linear_storage;
27mod map;
28mod occupied_error;
29mod pos_vec;
30mod send_sync;
31#[cfg(feature = "serde")]
32mod serialize;
33mod values;
34mod values_mut;
35
36pub use {
37    drain::Drain,
38    entry::{Entry, EntryRef, OccupiedEntry, VacantEntry, VacantEntryRef},
39    into_iter::IntoIter,
40    into_keys::IntoKeys,
41    into_values::IntoValues,
42    iter::Iter,
43    iter_mut::IterMut,
44    keys::Keys,
45    map::StableMap,
46    occupied_error::OccupiedError,
47    values::Values,
48    values_mut::ValuesMut,
49};