summary refs log tree commit diff
path: root/src/libstd/collections/hash/mod.rs
blob: 0d1bbb590db9ed7163b5144565fd9929785e77e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Unordered containers, implemented as hash-tables

mod bench;
mod table;
pub mod map;
pub mod set;

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>;
}