mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 15:32:06 +00:00
18 lines
344 B
Rust
18 lines
344 B
Rust
pub mod io {
|
|
pub trait Read {
|
|
fn read(&mut self);
|
|
}
|
|
}
|
|
|
|
pub mod bufreader {
|
|
// @has crate_relative_assoc/bufreader/index.html '//a/@href' 'struct.TcpStream.html#method.read'
|
|
//! [`crate::TcpStream::read`]
|
|
use crate::io::Read;
|
|
}
|
|
|
|
pub struct TcpStream;
|
|
|
|
impl crate::io::Read for TcpStream {
|
|
fn read(&mut self) {}
|
|
}
|