From eadda7665eb31b1e7cb94a503b4d5cf5c75474c0 Mon Sep 17 00:00:00 2001 From: Murarth Date: Tue, 13 Jun 2017 15:52:59 -0700 Subject: Merge crate `collections` into `alloc` --- src/liballoc/btree/mod.rs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/liballoc/btree/mod.rs (limited to 'src/liballoc/btree/mod.rs') diff --git a/src/liballoc/btree/mod.rs b/src/liballoc/btree/mod.rs new file mode 100644 index 00000000000..087c9f228d4 --- /dev/null +++ b/src/liballoc/btree/mod.rs @@ -0,0 +1,23 @@ +// Copyright 2014 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +mod node; +mod search; +pub mod map; +pub mod set; + +#[doc(hidden)] +trait Recover { + type Key; + + fn get(&self, key: &Q) -> Option<&Self::Key>; + fn take(&mut self, key: &Q) -> Option; + fn replace(&mut self, key: Self::Key) -> Option; +} -- cgit 1.4.1-3-g733a5