pub(crate) fn from_str_generic<T, E, F>( s: &str, from: F, ) -> Result<Complex<T>, ParseComplexError<E>>where F: Fn(&str) -> Result<T, E>, T: Clone + Num,