2019-08-08 12:44:48 +00:00
|
|
|
//! The async prelude.
|
|
|
|
//!
|
2019-09-11 14:13:17 +00:00
|
|
|
//! The prelude re-exports most commonly used traits and macros from this crate.
|
|
|
|
//!
|
|
|
|
//! # Examples
|
|
|
|
//!
|
|
|
|
//! Import the prelude with:
|
|
|
|
//!
|
|
|
|
//! ```
|
|
|
|
//! # #[allow(unused_imports)]
|
|
|
|
//! use async_std::prelude::*;
|
|
|
|
//! ```
|
2019-08-08 12:44:48 +00:00
|
|
|
|
|
|
|
#[doc(no_inline)]
|
2019-08-12 10:43:44 +00:00
|
|
|
pub use crate::future::Future;
|
2019-08-08 12:44:48 +00:00
|
|
|
#[doc(no_inline)]
|
2019-08-12 10:43:44 +00:00
|
|
|
pub use crate::io::BufRead as _;
|
2019-08-08 12:44:48 +00:00
|
|
|
#[doc(no_inline)]
|
2019-08-12 10:43:44 +00:00
|
|
|
pub use crate::io::Read as _;
|
2019-08-08 12:44:48 +00:00
|
|
|
#[doc(no_inline)]
|
2019-08-12 10:43:44 +00:00
|
|
|
pub use crate::io::Seek as _;
|
2019-08-08 12:44:48 +00:00
|
|
|
#[doc(no_inline)]
|
2019-08-12 10:43:44 +00:00
|
|
|
pub use crate::io::Write as _;
|
2019-10-09 15:19:34 +00:00
|
|
|
#[doc(no_inline)]
|
2019-08-12 10:43:44 +00:00
|
|
|
pub use crate::stream::Stream;
|
2019-08-08 12:44:48 +00:00
|
|
|
#[doc(no_inline)]
|
2019-08-14 01:47:39 +00:00
|
|
|
pub use crate::task_local;
|
2019-09-21 08:39:56 +00:00
|
|
|
|
2019-10-15 14:27:06 +00:00
|
|
|
#[doc(hidden)]
|
|
|
|
pub use crate::future::future::FutureExt as _;
|
2019-09-21 08:39:56 +00:00
|
|
|
#[doc(hidden)]
|
2019-09-22 10:08:08 +00:00
|
|
|
pub use crate::io::buf_read::BufReadExt as _;
|
2019-09-21 08:39:56 +00:00
|
|
|
#[doc(hidden)]
|
2019-09-22 10:08:08 +00:00
|
|
|
pub use crate::io::read::ReadExt as _;
|
2019-09-21 08:39:56 +00:00
|
|
|
#[doc(hidden)]
|
2019-09-22 10:08:08 +00:00
|
|
|
pub use crate::io::seek::SeekExt as _;
|
2019-09-21 08:39:56 +00:00
|
|
|
#[doc(hidden)]
|
2019-09-22 10:08:08 +00:00
|
|
|
pub use crate::io::write::WriteExt as _;
|
2019-09-22 14:34:07 +00:00
|
|
|
#[doc(hidden)]
|
|
|
|
pub use crate::stream::stream::StreamExt as _;
|
2019-10-15 07:51:53 +00:00
|
|
|
|
2019-10-17 17:17:49 +00:00
|
|
|
cfg_unstable! {
|
|
|
|
#[doc(no_inline)]
|
|
|
|
pub use crate::stream::DoubleEndedStream;
|
|
|
|
#[doc(no_inline)]
|
|
|
|
pub use crate::stream::ExactSizeStream;
|
2019-10-15 07:51:53 +00:00
|
|
|
}
|