[][src]Function nyx::stderr

Important traits for Stderr<T>
pub fn stderr<T>(inner: T) -> Stderr<T>

Creates a wrapper that yields the bytes by printing to stderr.

Panics

Panics if writing to io::stderr fails.

Examples

use std::io;

let mut repeat = nyx::stderr(io::repeat(0));
io::copy(&mut repeat, &mut io::sink()).unwrap();