[−][src]Trait read_write_pipe::ReadWritePipe
A trait for objects implementing Write
, to write all content from a Read
object.
This trait adds one method to the writers implementing it.
write_reader
This method allows to read a whole reader object into the writer. There is no garantee about the state of both reader and writer in case of an error.
use std::io; use read_write_pipe::*; let _ = io::stdout().write_reader(io::stdin()).unwrap();