]> git.proxmox.com Git - rustc.git/blob - src/libstd/prelude/v1.rs
Imported Upstream version 1.0.0-alpha.2
[rustc.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
27 #[stable(feature = "rust1", since = "1.0.0")]
28 #[doc(no_inline)] pub use boxed::Box;
29 #[stable(feature = "rust1", since = "1.0.0")]
30 #[doc(no_inline)] pub use char::CharExt;
31 #[stable(feature = "rust1", since = "1.0.0")]
32 #[doc(no_inline)] pub use clone::Clone;
33 #[stable(feature = "rust1", since = "1.0.0")]
34 #[doc(no_inline)] pub use cmp::{PartialEq, PartialOrd, Eq, Ord};
35 #[stable(feature = "rust1", since = "1.0.0")]
36 #[doc(no_inline)] pub use iter::DoubleEndedIterator;
37 #[stable(feature = "rust1", since = "1.0.0")]
38 #[doc(no_inline)] pub use iter::ExactSizeIterator;
39 #[stable(feature = "rust1", since = "1.0.0")]
40 #[doc(no_inline)] pub use iter::{Iterator, IteratorExt, Extend};
41 #[stable(feature = "rust1", since = "1.0.0")]
42 #[doc(no_inline)] pub use option::Option::{self, Some, None};
43 #[stable(feature = "rust1", since = "1.0.0")]
44 #[doc(no_inline)] pub use ptr::{PtrExt, MutPtrExt};
45 #[stable(feature = "rust1", since = "1.0.0")]
46 #[doc(no_inline)] pub use result::Result::{self, Ok, Err};
47 #[stable(feature = "rust1", since = "1.0.0")]
48 #[doc(no_inline)] pub use slice::AsSlice;
49 #[stable(feature = "rust1", since = "1.0.0")]
50 #[doc(no_inline)] pub use slice::{SliceExt, SliceConcatExt};
51 #[stable(feature = "rust1", since = "1.0.0")]
52 #[doc(no_inline)] pub use str::{Str, StrExt};
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;
57
58 // NB: remove when path reform lands
59 #[doc(no_inline)] pub use old_path::{Path, GenericPath};
60 // NB: remove when I/O reform lands
61 #[doc(no_inline)] pub use old_io::{Buffer, Writer, Reader, Seek, BufferPrelude};
62 // NB: remove when range syntax lands
63 #[doc(no_inline)] pub use iter::range;