Skip to main content

Module prelude

Module prelude 

Source
🔬This is a nightly-only experimental API. (alloc_io #154046)
Expand description

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:

use alloc::io::prelude::*;

Re-exports§

pub use crate::io::BufRead;
pub use crate::io::Read;

Traits§

SeekExperimental
The Seek trait provides a cursor which can be moved within a stream of bytes.
WriteExperimental
A trait for objects which are byte-oriented sinks.