Function input_stream

Source
pub fn input_stream<T, R>(reader: R) -> Result<T, InputError<T>>
where R: BufRead, T: FromStr,
Expand description

Reads an input from a BufRead reader.

ยงErrors

This function returns an InputError if the input is invalid, if a parsing error occurs, or if the input does not meet the specified constraints.