std::io

Module std::io

Traits, helpers, and type definitions for core I/O functionality.

The std::io module contains a number of common things you'll need when doing input and output. The most core part of this module is the Read and Write traits, which provide the most general interface for reading and writing input and output.

Read and Write

Because they are traits, Read and Write are implemented by a number of other types, and you can implement them for your types too. As such, you'll see a few different types of I/O throughout the documentation in this module: Files, TcpStreams, and sometimes even 登录查看完整内容