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
#![no_std]
#![feature(alloc, dropck_eyepatch, generic_param_attrs, allocator_api, shared, unique,
sip_hash_13, fused, placement_new_protocol)]
extern crate alloc;
mod table;
pub mod map;
pub mod set;
pub mod fnv;
trait Recover<Q: ?Sized> {
type Key;
fn get(&self, key: &Q) -> Option<&Self::Key>;
fn take(&mut self, key: &Q) -> Option<Self::Key>;
fn replace(&mut self, key: Self::Key) -> Option<Self::Key>;
}
pub use map::HashMap;
pub use set::HashSet;
pub use fnv::FnvHashMap;
pub use fnv::FnvHashSet;