pub fn each_top_level_item_of_crate<F>(cstore: &cstore::CStore,
                                       cnum: ast::CrateNum,
                                       callback: F) where
    F: FnMut(decoder::DefLike, ast::Name, hir::Visibility),
{
    let crate_data = cstore.get_crate_data(cnum);
    let get_crate_data = |cnum| {
        cstore.get_crate_data(cnum)
    };
    decoder::each_top_level_item_of_crate(cstore.intr.clone(),
                                          &*crate_data,
                                          get_crate_data,
                                          callback)
}
/// Iterates over each top-level crate item.
Iterates over each top-level crate item.
Iterates over each top - level crate item .
pub fn each_top_level_item_of_crate<F>(cstore: &cstore::CStore,
                                       cnum: ast::CrateNum,
                                       callback: F) where
    F: FnMut(decoder::DefLike, ast::Name, hir::Visibility),
{
    let crate_data = cstore.get_crate_data(cnum);
    let get_crate_data = |cnum| {
        cstore.get_crate_data(cnum)
    };
    decoder::each_top_level_item_of_crate(cstore.intr.clone(),
                                          &*crate_data,
                                          get_crate_data,
                                          callback)
}
pub fn each_top_level_item_of_crate < F > ( cstore : & cstore :: CStore , cnum : ast :: CrateNum , callback : F ) where F : FnMut ( decoder :: DefLike , ast :: Name , hir :: Visibility ) , { let crate_data = cstore . get_crate_data ( cnum ) ; let get_crate_data = | cnum | { cstore . get_crate_data ( cnum ) } ; decoder :: each_top_level_item_of_crate ( cstore . intr . clone ( ) , & * crate_data , get_crate_data , callback ) }
Iterates over each top-level crate item.
Iterates over each top - level crate item .
cstore
&cstore::CStore
cnum
ast::CrateNum
callback
F
cstore
&cstore::CStore
cnum
ast::CrateNum
callback
F