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/index.html) for a detailed discussion of
14 //! collections in Rust.
16 #![crate_name = "collections"]
17 #![crate_type = "rlib"]
18 #![unstable(feature = "collections",
19 reason = "library is unlikely to be stabilized with the current \
20 layout and name, use std::collections instead",
22 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
23 html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
24 html_root_url = "https://doc.rust-lang.org/nightly/",
25 html_playground_url = "https://play.rust-lang.org/",
26 issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/",
27 test(no_crate_inject, attr(allow(unused_variables), deny(warnings))))]
29 #![cfg_attr(test, allow(deprecated))] // rand
30 #![cfg_attr(not(test), feature(copy_from_slice))] // impl [T]
31 #![cfg_attr(not(stage0), deny(warnings))]
34 #![feature(allow_internal_unstable)]
35 #![feature(box_patterns)]
36 #![feature(box_syntax)]
37 #![feature(core_intrinsics)]
38 #![feature(decode_utf16)]
39 #![feature(dropck_parametricity)]
40 #![feature(fmt_internals)]
41 #![feature(fmt_radix)]
43 #![feature(inclusive_range)]
44 #![feature(iter_arith)]
45 #![feature(lang_items)]
47 #![feature(num_bits_bytes)]
49 #![feature(placement_in)]
50 #![feature(placement_new_protocol)]
52 #![feature(slice_bytes)]
53 #![feature(slice_patterns)]
54 #![feature(staged_api)]
57 #![feature(unboxed_closures)]
60 #![feature(unsafe_no_drop_flag)]
61 #![cfg_attr(test, feature(rand, test))]
65 extern crate rustc_unicode;
74 pub use binary_heap::BinaryHeap;
75 pub use btree_map::BTreeMap;
76 pub use btree_set::BTreeSet;
77 pub use linked_list::LinkedList;
78 pub use enum_set::EnumSet;
79 pub use vec_deque::VecDeque;
80 pub use string::String;
83 // Needed for the vec! macro
102 #[stable(feature = "rust1", since = "1.0.0")]
104 #[stable(feature = "rust1", since = "1.0.0")]
105 pub use btree::map::*;
108 #[stable(feature = "rust1", since = "1.0.0")]
110 #[stable(feature = "rust1", since = "1.0.0")]
111 pub use btree::set::*;
116 pub use core::ops; // RangeFull
119 /// An endpoint of a range of keys.
120 #[unstable(feature = "collections_bound", issue = "27787")]
121 #[derive(Clone, Copy, Debug, Hash, PartialEq, Eq)]
123 /// An inclusive bound.
125 /// An exclusive bound.
127 /// An infinite endpoint. Indicates that there is no bound in this direction.