pub(crate) fn filter_def_ids<F, T>( tcx: TyCtxt<'_>, krate: CrateNum, func: F, ) -> Vec<T>where F: FnMut(DefId) -> Option<T>,
Iterate over the definitions of the given crate.