pub fn collect_files_as<T>( f: &dyn Fn(PathBuf) -> T, pat: &str) -> BoxResult<Vec<T>>
A generic function wrapper extending glob::glob