Function whiteread::parse_line [] [src]

pub fn parse_line<T: White>() -> Result<T>

Helper function for parsing White value from one line of stdin.

Leftovers are considered an error. This function locks a mutex and allocates a buffer, so don't use it when reading more than few lines – use Reader instead.

Examples

let x: i32 = parse_line().unwrap();