pub(crate) fn parse_number<T: FromStr>( component_name: &'static str, chars: &str, ) -> Result<T, Error>