]> git.lizzy.rs Git - rust.git/blob - src/liballoc/prelude.rs
Auto merge of #58423 - nox:relax-bounds-buf-reader, r=dtolnay
[rust.git] / src / liballoc / prelude.rs
1 //! The alloc Prelude
2 //!
3 //! The purpose of this module is to alleviate imports of commonly-used
4 //! items of the `alloc` crate by adding a glob import to the top of modules:
5 //!
6 //! ```
7 //! # #![allow(unused_imports)]
8 //! # #![feature(alloc)]
9 //! extern crate alloc;
10 //! use alloc::prelude::*;
11 //! ```
12
13 #![unstable(feature = "alloc", issue = "27783")]
14
15 #[unstable(feature = "alloc", issue = "27783")] pub use crate::borrow::ToOwned;
16 #[unstable(feature = "alloc", issue = "27783")] pub use crate::boxed::Box;
17 #[unstable(feature = "alloc", issue = "27783")] pub use crate::slice::SliceConcatExt;
18 #[unstable(feature = "alloc", issue = "27783")] pub use crate::string::{String, ToString};
19 #[unstable(feature = "alloc", issue = "27783")] pub use crate::vec::Vec;