]> git.lizzy.rs Git - rust.git/blob - src/libcore/prelude/v1.rs
fix spacing issue in trpl/documentation doc
[rust.git] / src / libcore / prelude / v1.rs
1 // Copyright 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.
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 core prelude
12 //!
13 //! This module is intended for users of libcore which do not link to libstd as
14 //! well. This module is imported by default when `#![no_std]` is used in the
15 //! same manner as the standard library's prelude.
16
17 #![unstable(feature = "core_prelude",
18             reason = "the libcore prelude has not been scrutinized and \
19                       stabilized yet",
20             issue = "27701")]
21
22 // Reexported core operators
23 pub use marker::{Copy, Send, Sized, Sync};
24 pub use ops::{Drop, Fn, FnMut, FnOnce};
25
26 // Reexported functions
27 pub use mem::drop;
28
29 // Reexported types and traits
30 pub use char::CharExt;
31 pub use clone::Clone;
32 pub use cmp::{PartialEq, PartialOrd, Eq, Ord};
33 pub use convert::{AsRef, AsMut, Into, From};
34 pub use default::Default;
35 pub use iter::IntoIterator;
36 pub use iter::{Iterator, DoubleEndedIterator, Extend, ExactSizeIterator};
37 pub use option::Option::{self, Some, None};
38 pub use result::Result::{self, Ok, Err};
39 pub use slice::SliceExt;
40 pub use str::StrExt;