/// Iterates over each child of the given item.
Iterates over each child of the given item.
Iterates over each child of the given item .
pub fn each_child_of_item<F>(cstore: &cstore::CStore,
                             def_id: DefId,
                             callback: F) where
    F: FnMut(decoder::DefLike, ast::Name, hir::Visibility),
{
    let crate_data = cstore.get_crate_data(def_id.krate);
    let get_crate_data = |cnum| {
        cstore.get_crate_data(cnum)
    };
    decoder::each_child_of_item(cstore.intr.clone(),
                                &*crate_data,
                                def_id.node,
                                get_crate_data,
                                callback)
}
pub fn each_child_of_item < F > ( cstore : & cstore :: CStore , def_id : DefId , callback : F ) where F : FnMut ( decoder :: DefLike , ast :: Name , hir :: Visibility ) , { let crate_data = cstore . get_crate_data ( def_id . krate ) ; let get_crate_data = | cnum | { cstore . get_crate_data ( cnum ) } ; decoder :: each_child_of_item ( cstore . intr . clone ( ) , & * crate_data , def_id . node , get_crate_data , callback ) }
Iterates over each child of the given item.
Iterates over each child of the given item .
cstore
&cstore::CStore
def_id
DefId
callback
F