1 | //! The async I/O prelude. |
2 | //! |
3 | //! The purpose of this module is to alleviate imports of many common I/O traits |
4 | //! by adding a glob import to the top of I/O heavy modules: |
5 | //! |
6 | //! ``` |
7 | //! # #![allow (unused_imports)] |
8 | //! use async_std::io::prelude::*; |
9 | //! ``` |
10 | |
11 | #[doc (no_inline)] |
12 | pub use crate::io::BufRead; |
13 | #[doc (no_inline)] |
14 | pub use crate::io::Read; |
15 | #[doc (no_inline)] |
16 | pub use crate::io::Seek; |
17 | #[doc (no_inline)] |
18 | pub use crate::io::Write; |
19 | |
20 | #[doc (inline)] |
21 | pub use crate::io::buf_read::BufReadExt; |
22 | #[doc (inline)] |
23 | pub use crate::io::read::ReadExt; |
24 | #[doc (inline)] |
25 | pub use crate::io::seek::SeekExt; |
26 | #[doc (inline)] |
27 | pub use crate::io::write::WriteExt; |
28 | |