Function read_input::valid_input

source ·
pub fn valid_input<T: FromStr>(test: impl Fn(&T) -> bool + 'static) -> T
Expand description

Shortcut function. This is documented in the readme