[][src]Function whiteread::parse_stdin

pub fn parse_stdin<T: FromStream>() -> Result<T>

Parse the whole stdin as a FromStream value

Use Reader if you want more complex logic.

Examples

/// Read whitespace-separated numbers from stdin, newline agnostic.
let numbers: Vec<i32> = parse_stdin().unwrap();