fn encode_impls(&mut self) -> LazySeq<TraitImpls> {
        let mut visitor = ImplVisitor {
            tcx: self.tcx,
            impls: FxHashMap(),
        };
        self.tcx.hir.krate().visit_all_item_likes(&mut visitor);

        let all_impls: Vec<_> = visitor.impls
            .into_iter()
            .map(|(trait_def_id, impls)| {
                TraitImpls {
                    trait_id: (trait_def_id.krate.as_u32(), trait_def_id.index),
                    impls: self.lazy_seq(impls),
                }
            })
            .collect();

        self.lazy_seq(all_impls)
    }
/// Encodes an index, mapping each trait to its (local) implementations.
Encodes an index, mapping each trait to its (local) implementations.
Encodes an index mapping each trait to its ( local ) implementations .
fn encode_impls(&mut self) -> LazySeq<TraitImpls> {
        let mut visitor = ImplVisitor {
            tcx: self.tcx,
            impls: FxHashMap(),
        };
        self.tcx.hir.krate().visit_all_item_likes(&mut visitor);
        let all_impls: Vec<_> = visitor.impls
            .into_iter()
            .map(|(trait_def_id, impls)| {
                TraitImpls {
                    trait_id: (trait_def_id.krate.as_u32(), trait_def_id.index),
                    impls: self.lazy_seq(impls),
                }
            })
            .collect();
        self.lazy_seq(all_impls)
    }
fn encode_impls ( & mut self ) -> LazySeq < TraitImpls > { let mut visitor = ImplVisitor { tcx : self . tcx , impls : FxHashMap ( ) , } ; self . tcx . hir . krate ( ) . visit_all_item_likes ( & mut visitor ) ; let all_impls : Vec < _ > = visitor . impls . into_iter ( ) . map ( | ( trait_def_id , impls ) | { TraitImpls { trait_id : ( trait_def_id . krate . as_u32 ( ) , trait_def_id . index ) , impls : self . lazy_seq ( impls ) , } } ) . collect ( ) ; self . lazy_seq ( all_impls ) }
Encodes an index, mapping each trait to its (local) implementations.
Encodes an index mapping each trait to its ( local ) implementations .
&mut self