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 #![cfg_attr(test, allow(deprecated))] // rand
57 #[cfg(test)] #[macro_use] extern crate std;
58 #[cfg(test)] extern crate test;
60 pub use binary_heap
::BinaryHeap
;
61 pub use bit_vec
::BitVec
;
62 pub use bit_set
::BitSet
;
63 pub use btree_map
::BTreeMap
;
64 pub use btree_set
::BTreeSet
;
65 pub use linked_list
::LinkedList
;
66 pub use enum_set
::EnumSet
;
67 pub use vec_deque
::VecDeque
;
68 pub use string
::String
;
70 pub use vec_map
::VecMap
;
72 // Needed for the vec! macro
92 #[unstable(feature = "collections",
95 pub use bit
::{BitVec, Iter}
;
98 #[unstable(feature = "collections",
101 pub use bit
::{BitSet, Union, Intersection, Difference, SymmetricDifference}
;
102 pub use bit
::SetIter
as Iter
;
105 #[stable(feature = "rust1", since = "1.0.0")]
107 pub use btree
::map
::*;
110 #[stable(feature = "rust1", since = "1.0.0")]
112 pub use btree
::set
::*;
116 // FIXME(#14344) this shouldn't be necessary
118 pub fn fixme_14344_be_sure_to_link_to_collections() {}
122 pub use core
::ops
; // RangeFull
125 /// An endpoint of a range of keys.
126 #[derive(Clone, Copy, Debug, Hash, PartialEq, Eq)]
128 /// An inclusive bound.
130 /// An exclusive bound.
132 /// An infinite endpoint. Indicates that there is no bound in this direction.