1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! Stash is a library for efficiently storing maps of keys to values when one
//! doesn't care what the keys are but wants blazing<sup>†</sup> fast `O(1)`
//! insertions, deletions, and lookups.
//!
//! Common use cases include file descriptor tables, session tables, or MIO
//! context tables.
//!
//! <small><sup>†</sup>Blazing means an order of magnitude faster than hash maps and btree maps.</small>
//!
//! # Serialization
//!
//! A stash can be serialized and deserialized with serde, preserving its _existing_ key/value
//! mapping. This can be used to save/restore a stash to persistant storage.
//!
//! However, in general, stashes make no guarantees on how keys are assigned. If stash **A** is
//! serialized then deserialized into stash **B**, values inserted into stash **A** will likely be
//! assigned different keys than values inserted into stash **B**.
extern crate alloc;
extern crate unreachable;
extern crate bincode;
extern crate serde;
extern crate serde_derive;
pub use crateIndex;
pub use crateStash;
pub use crate;