pub fn valid_input<T>(test: impl Fn(&T) -> bool + 'static) -> Twhere T: FromStr,
Shortcut function. This is documented in the readme