]> git.lizzy.rs Git - rust.git/blob - src/libstd/prelude/v1.rs
Merge pull request #20510 from tshepang/patch-6
[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]
14
15 // Reexported core operators
16 #[stable] #[doc(no_inline)] pub use kinds::{Copy, Send, Sized, Sync};
17 #[stable] #[doc(no_inline)] pub use ops::{Drop, Fn, FnMut, FnOnce};
18
19 // Reexported functions
20 #[stable] #[doc(no_inline)] pub use mem::drop;
21
22 // Reexported types and traits
23
24 #[stable] #[doc(no_inline)] pub use boxed::Box;
25 #[stable] #[doc(no_inline)] pub use char::{Char, UnicodeChar};
26 #[stable] #[doc(no_inline)] pub use clone::Clone;
27 #[stable] #[doc(no_inline)] pub use cmp::{PartialEq, PartialOrd, Eq, Ord};
28 #[stable] #[doc(no_inline)] pub use iter::CloneIteratorExt;
29 #[stable] #[doc(no_inline)] pub use iter::DoubleEndedIterator;
30 #[stable] #[doc(no_inline)] pub use iter::ExactSizeIterator;
31 #[stable] #[doc(no_inline)] pub use iter::{Iterator, IteratorExt, Extend};
32 #[stable] #[doc(no_inline)] pub use iter::{IteratorCloneExt, IteratorOrdExt};
33 #[stable] #[doc(no_inline)] pub use option::Option::{self, Some, None};
34 #[stable] #[doc(no_inline)] pub use ptr::{PtrExt, MutPtrExt};
35 #[stable] #[doc(no_inline)] pub use result::Result::{self, Ok, Err};
36 #[stable] #[doc(no_inline)] pub use slice::AsSlice;
37 #[stable] #[doc(no_inline)] pub use slice::{SliceExt, SliceConcatExt};
38 #[stable] #[doc(no_inline)] pub use str::{Str, StrExt};
39 #[stable] #[doc(no_inline)] pub use string::{String, ToString};
40 #[stable] #[doc(no_inline)] pub use vec::Vec;
41
42 // NB: remove when path reform lands
43 #[doc(no_inline)] pub use path::{Path, GenericPath};
44 // NB: remove when I/O reform lands
45 #[doc(no_inline)] pub use io::{Buffer, Writer, Reader, Seek, BufferPrelude};
46 // NB: remove when range syntax lands
47 #[doc(no_inline)] pub use iter::range;