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 = "http://www.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)]
36 #![feature(unsafe_destructor)]
38 #![feature(unsafe_no_drop_flag, filling_drop)]
41 #![feature(str_words)]
42 #![feature(slice_patterns)]
43 #![feature(debug_builders)]
44 #![feature(utf8_error)]
45 #![cfg_attr(test, feature(rand, rustc_private, test, hash, collections,
46 collections_drain, collections_range))]
47 #![cfg_attr(test, allow(deprecated))] // rand
55 extern crate rustc_unicode;
58 #[cfg(test)] #[macro_use] extern crate std;
59 #[cfg(test)] extern crate test;
61 pub use binary_heap::BinaryHeap;
62 pub use bit_vec::BitVec;
63 pub use bit_set::BitSet;
64 pub use btree_map::BTreeMap;
65 pub use btree_set::BTreeSet;
66 pub use linked_list::LinkedList;
67 pub use enum_set::EnumSet;
68 pub use vec_deque::VecDeque;
69 pub use string::String;
71 pub use vec_map::VecMap;
73 // Needed for the vec! macro
94 #[unstable(feature = "collections",
97 pub use bit::{BitVec, Iter};
100 #[unstable(feature = "collections",
103 pub use bit::{BitSet, Union, Intersection, Difference, SymmetricDifference};
104 pub use bit::SetIter as Iter;
107 #[stable(feature = "rust1", since = "1.0.0")]
109 pub use btree::map::*;
112 #[stable(feature = "rust1", since = "1.0.0")]
114 pub use btree::set::*;
118 // FIXME(#14344) this shouldn't be necessary
120 pub fn fixme_14344_be_sure_to_link_to_collections() {}
124 pub use core::ops; // RangeFull
127 /// An endpoint of a range of keys.
128 #[derive(Clone, Copy, Debug, Hash, PartialEq, Eq)]
130 /// An inclusive bound.
132 /// An exclusive bound.
134 /// An infinite endpoint. Indicates that there is no bound in this direction.