[][src]Function nyx::read::stderr

Important traits for Reader<R, F>
pub fn stderr<R: Read>(reader: R) -> Reader<R, impl FnMut(Bps)>

Creates a reader that yields the bytes by printing it to stderr.

Examples

use std::io;

fn main() {
    io::copy(&mut nyx::read::stderr(io::repeat(0)), &mut io::sink()).unwrap();
}