Function std::io::sink [] [src]

pub fn sink() -> Sink

Creates an instance of a writer which will successfully consume all data.

All calls to write`writeon the returned instance will returnOk(buf.len())` and the contents of the buffer will not be inspected.