add io::prelude

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
staging
Yoshua Wuyts 5 years ago
parent 98d9284e64
commit b1d85ab460
No known key found for this signature in database
GPG Key ID: 24EA8164F96777ED

@ -20,6 +20,8 @@
//! # Ok(()) }) }
//! ```
pub mod prelude;
#[doc(inline)]
pub use std::io::{Error, ErrorKind, Result, SeekFrom};

@ -0,0 +1,11 @@
//! The I/O Prelude
//!
//! The purpose of this module is to alleviate imports of many common I/O traits
//! by adding a glob import to the top of I/O heavy modules:
//!
//! ```
//! # #![allow(unused_imports)]
//! use async_std::io::prelude::*;
//! ```
pub use super::{BufRead, Read, Seek, Write};
Loading…
Cancel
Save