1 // Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
13 //! See [std::collections](../std/collections) for a detailed discussion of collections in Rust.
15 // Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
16 #![cfg_attr(stage0, feature(custom_attribute))]
17 #![crate_name = "collections"]
18 #![unstable(feature = "collections")]
20 #![crate_type = "rlib"]
21 #![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
22 html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
23 html_root_url = "http://doc.rust-lang.org/nightly/",
24 html_playground_url = "http://play.rust-lang.org/")]
25 #![doc(test(no_crate_inject))]
27 #![allow(trivial_casts)]
29 #![feature(box_syntax)]
30 #![feature(box_patterns)]
32 #![feature(lang_items)]
33 #![feature(staged_api)]
34 #![feature(unboxed_closures)]
37 #![feature(unsafe_no_drop_flag, filling_drop)]
40 #![feature(slice_patterns)]
41 #![feature(utf8_error)]
42 #![cfg_attr(test, feature(rand, test))]
43 #![cfg_attr(test, allow(deprecated))] // rand
44 #![cfg_attr(not(test), feature(str_words))]
52 extern crate rustc_unicode;
55 #[cfg(test)] #[macro_use] extern crate std;
56 #[cfg(test)] extern crate test;
58 pub use binary_heap::BinaryHeap;
59 pub use bit_vec::BitVec;
60 pub use bit_set::BitSet;
61 pub use btree_map::BTreeMap;
62 pub use btree_set::BTreeSet;
63 pub use linked_list::LinkedList;
64 pub use enum_set::EnumSet;
65 pub use vec_deque::VecDeque;
66 pub use string::String;
68 pub use vec_map::VecMap;
70 // Needed for the vec! macro
91 #[unstable(feature = "collections",
94 pub use bit::{BitVec, Iter};
97 #[unstable(feature = "collections",
100 pub use bit::{BitSet, Union, Intersection, Difference, SymmetricDifference};
101 pub use bit::SetIter as Iter;
104 #[stable(feature = "rust1", since = "1.0.0")]
106 pub use btree::map::*;
109 #[stable(feature = "rust1", since = "1.0.0")]
111 pub use btree::set::*;
115 // FIXME(#14344) this shouldn't be necessary
117 pub fn fixme_14344_be_sure_to_link_to_collections() {}
121 pub use core::ops; // RangeFull
124 /// An endpoint of a range of keys.
125 #[derive(Clone, Copy, Debug, Hash, PartialEq, Eq)]
127 /// An inclusive bound.
129 /// An exclusive bound.
131 /// An infinite endpoint. Indicates that there is no bound in this direction.