fn map_type_params_in_path<F>( path: &Path, params: &[&TypeParam], self_type: &Path, f: &mut F, ) -> Pathwhere F: FnMut(&Ident) -> Type,