]> git.lizzy.rs Git - rust.git/blob - src/libstd/prelude/v1.rs
190304a1d3e7962599c89e2a89c2e7c8924ce024
[rust.git] / src / libstd / prelude / v1.rs
1 // Copyright 2013 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.
4 //
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.
10
11 //! The first version of the prelude of The Rust Standard Library.
12 //!
13 //! See the [module-level documentation](../index.html) for more.
14
15 #![stable(feature = "rust1", since = "1.0.0")]
16
17 // Re-exported core operators
18 #[stable(feature = "rust1", since = "1.0.0")]
19 #[doc(no_inline)] pub use marker::{Copy, Send, Sized, Sync};
20 #[stable(feature = "rust1", since = "1.0.0")]
21 #[doc(no_inline)] pub use ops::{Drop, Fn, FnMut, FnOnce};
22
23 // Re-exported functions
24 #[stable(feature = "rust1", since = "1.0.0")]
25 #[doc(no_inline)] pub use mem::drop;
26 #[unstable(feature = "convert_id_prelude", issue = "0")]
27 #[inline]
28 #[doc(no_inline)] pub use convert::id;
29
30 // Re-exported types and traits
31 #[stable(feature = "rust1", since = "1.0.0")]
32 #[doc(no_inline)] pub use boxed::Box;
33 #[stable(feature = "rust1", since = "1.0.0")]
34 #[doc(no_inline)] pub use borrow::ToOwned;
35 #[stable(feature = "rust1", since = "1.0.0")]
36 #[doc(no_inline)] pub use clone::Clone;
37 #[stable(feature = "rust1", since = "1.0.0")]
38 #[doc(no_inline)] pub use cmp::{PartialEq, PartialOrd, Eq, Ord};
39 #[stable(feature = "rust1", since = "1.0.0")]
40 #[doc(no_inline)] pub use convert::{AsRef, AsMut, Into, From};
41 #[stable(feature = "rust1", since = "1.0.0")]
42 #[doc(no_inline)] pub use default::Default;
43 #[stable(feature = "rust1", since = "1.0.0")]
44 #[doc(no_inline)] pub use iter::{Iterator, Extend, IntoIterator};
45 #[stable(feature = "rust1", since = "1.0.0")]
46 #[doc(no_inline)] pub use iter::{DoubleEndedIterator, ExactSizeIterator};
47 #[stable(feature = "rust1", since = "1.0.0")]
48 #[doc(no_inline)] pub use option::Option::{self, Some, None};
49 #[stable(feature = "rust1", since = "1.0.0")]
50 #[doc(no_inline)] pub use result::Result::{self, Ok, Err};
51 #[stable(feature = "rust1", since = "1.0.0")]
52 #[doc(no_inline)] pub use slice::SliceConcatExt;
53 #[stable(feature = "rust1", since = "1.0.0")]
54 #[doc(no_inline)] pub use string::{String, ToString};
55 #[stable(feature = "rust1", since = "1.0.0")]
56 #[doc(no_inline)] pub use vec::Vec;