fn encode_impls<'a>(ecx: &'a EncodeContext,
                    krate: &hir::Crate,
                    rbml_w: &'a mut Encoder) {
    let mut visitor = ImplVisitor {
        tcx: ecx.tcx,
        impls: FnvHashMap()
    };
    krate.visit_all_items(&mut visitor);

    rbml_w.start_tag(tag_impls);
    for (trait_, trait_impls) in visitor.impls {
        rbml_w.start_tag(tag_impls_trait);
        encode_def_id(rbml_w, trait_);
        for impl_ in trait_impls {
            rbml_w.wr_tagged_u64(tag_impls_trait_impl, def_to_u64(impl_));
        }
        rbml_w.end_tag();
    }
    rbml_w.end_tag();
}
/// 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<'a>(ecx: &'a EncodeContext,
                    krate: &hir::Crate,
                    rbml_w: &'a mut Encoder) {
    let mut visitor = ImplVisitor {
        tcx: ecx.tcx,
        impls: FnvHashMap()
    };
    krate.visit_all_items(&mut visitor);
    rbml_w.start_tag(tag_impls);
    for (trait_, trait_impls) in visitor.impls {
        rbml_w.start_tag(tag_impls_trait);
        encode_def_id(rbml_w, trait_);
        for impl_ in trait_impls {
            rbml_w.wr_tagged_u64(tag_impls_trait_impl, def_to_u64(impl_));
        }
        rbml_w.end_tag();
    }
    rbml_w.end_tag();
}
fn encode_impls < ' a > ( ecx : & ' a EncodeContext , krate : & hir :: Crate , rbml_w : & ' a mut Encoder ) { let mut visitor = ImplVisitor { tcx : ecx . tcx , impls : FnvHashMap ( ) } ; krate . visit_all_items ( & mut visitor ) ; rbml_w . start_tag ( tag_impls ) ; for ( trait_ , trait_impls ) in visitor . impls { rbml_w . start_tag ( tag_impls_trait ) ; encode_def_id ( rbml_w , trait_ ) ; for impl_ in trait_impls { rbml_w . wr_tagged_u64 ( tag_impls_trait_impl , def_to_u64 ( impl_ ) ) ; } rbml_w . end_tag ( ) ; } rbml_w . end_tag ( ) ; }
Encodes an index, mapping each trait to its (local) implementations.
Encodes an index mapping each trait to its ( local ) implementations .
ecx
&'a EncodeContext
krate
&hir::Crate
rbml_w
&'a mut Encoder
ecx
&'a EncodeContext
krate
&hir::Crate
rbml_w
&'a mut Encoder