Skip to main content

auto_hash_map/
lib.rs

1pub mod map;
2pub mod set;
3pub mod tiny_vec;
4
5pub use map::AutoMap;
6pub use set::AutoSet;
7pub use tiny_vec::TinyVec;
8
9// Values based on data from https://github.com/yegor256/micromap#benchmark
10
11/// Maximum size of list variant. Must convert to HashMap when bigger.
12pub(crate) const MAX_USEFUL_LINEAR_SCAN: usize = 32;
13/// Minimum size of HashMap variant. Must convert to List when smaller.
14pub(crate) const MIN_HASH_SIZE: usize = 16;