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

pub mod quadsort;
pub use quadsort::{quad_sort, quad_sort_order_by};

mod util;
mod cache;
mod tree;
mod map;
mod timer;
mod arr;
pub mod buf;

pub use cache::{LruCache, LruKCache, LfuCache, ArcCache, Slab, Reinit};
pub use tree::RBTree;
pub use map::{BitMap, RoaringBitMap};
pub use timer::{TimerWheel, Timer};
pub use arr::{CircularBuffer, FixedVec};
pub use util::*;

#[cfg(feature = "hashbrown")]
extern crate hashbrown;


#[cfg(feature = "hashbrown")]
pub use hashbrown::{HashMap, HashSet};
#[cfg(not(feature = "hashbrown"))]
pub use std::collections::{HashMap, HashSet};

#[cfg(feature = "hashbrown")]
pub type DefaultHasher = hashbrown::hash_map::DefaultHashBuilder;
#[cfg(not(feature = "hashbrown"))]
pub type DefaultHasher = std::collections::hash_map::RandomState;