Function constrained_inputs::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.