fn get_methods<'a>( i: &'a Impl, mode: GetMethodsMode<'_, 'a>, used_links: &mut FxHashSet<String>, tcx: TyCtxt<'_>, ) -> impl Iterator<Item = Link<'a>>