]> git.lizzy.rs Git - rust.git/blob - src/libstd/prelude/v1.rs
6dc11c505a914a6f76b597e3fa53d8d5c194a8cf
[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 standard library.
12
13 #![stable(feature = "rust1", since = "1.0.0")]
14
15 // Reexported core operators
16 #[stable(feature = "rust1", since = "1.0.0")]
17 #[doc(no_inline)] pub use marker::{Copy, Send, Sized, Sync};
18 #[stable(feature = "rust1", since = "1.0.0")]
19 #[doc(no_inline)] pub use ops::{Drop, Fn, FnMut, FnOnce};
20
21 // Reexported functions
22 #[stable(feature = "rust1", since = "1.0.0")]
23 #[doc(no_inline)] pub use mem::drop;
24
25 // Reexported types and traits
26 #[stable(feature = "rust1", since = "1.0.0")]
27 #[doc(no_inline)] pub use boxed::Box;
28 #[stable(feature = "rust1", since = "1.0.0")]
29 #[doc(no_inline)] pub use borrow::ToOwned;
30 #[stable(feature = "rust1", since = "1.0.0")]
31 #[doc(no_inline)] pub use clone::Clone;
32 #[stable(feature = "rust1", since = "1.0.0")]
33 #[doc(no_inline)] pub use cmp::{PartialEq, PartialOrd, Eq, Ord};
34 #[stable(feature = "rust1", since = "1.0.0")]
35 #[doc(no_inline)] pub use convert::{AsRef, AsMut, Into, From};
36 #[stable(feature = "rust1", since = "1.0.0")]
37 #[doc(no_inline)] pub use default::Default;
38 #[stable(feature = "rust1", since = "1.0.0")]
39 #[doc(no_inline)] pub use iter::{Iterator, Extend, IntoIterator};
40 #[stable(feature = "rust1", since = "1.0.0")]
41 #[doc(no_inline)] pub use iter::{DoubleEndedIterator, ExactSizeIterator};
42 #[stable(feature = "rust1", since = "1.0.0")]
43 #[doc(no_inline)] pub use option::Option::{self, Some, None};
44 #[stable(feature = "rust1", since = "1.0.0")]
45 #[doc(no_inline)] pub use result::Result::{self, Ok, Err};
46 #[stable(feature = "rust1", since = "1.0.0")]
47 #[doc(no_inline)] pub use slice::SliceConcatExt;
48 #[stable(feature = "rust1", since = "1.0.0")]
49 #[doc(no_inline)] pub use string::{String, ToString};
50 #[stable(feature = "rust1", since = "1.0.0")]
51 #[doc(no_inline)] pub use vec::Vec;