Function read_custom_noquestion

Source
pub fn read_custom_noquestion<T: FromStr>() -> Result<Option<T>>
Expand description

Read in any type that implementd FromStr from stdio.

If the text couldn’t be converted, then the user will be asked for more input.

§Examples

let number: Option<u32> = read_human::read_custom_noquestion()?;