/// 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, G>(intr: Rc<IdentInterner>,
                               cdata: Cmd,
                               id: ast::NodeId,
                               get_crate_data: G,
                               callback: F) where
    F: FnMut(DefLike, ast::Name, hir::Visibility),
    G: FnMut(ast::CrateNum) -> Rc<crate_metadata>,
{
    // Find the item.
    let item_doc = match cdata.get_item(id) {
        None => return,
        Some(item_doc) => item_doc,
    };
    each_child_of_item_or_crate(intr,
                                cdata,
                                item_doc,
                                get_crate_data,
                                callback)
}
pub fn each_child_of_item < F , G > ( intr : Rc < IdentInterner > , cdata : Cmd , id : ast :: NodeId , get_crate_data : G , callback : F ) where F : FnMut ( DefLike , ast :: Name , hir :: Visibility ) , G : FnMut ( ast :: CrateNum ) -> Rc < crate_metadata > , { // Find the item. let item_doc = match cdata . get_item ( id ) { None => return , Some ( item_doc ) => item_doc , } ; each_child_of_item_or_crate ( intr , cdata , item_doc , get_crate_data , callback ) }
Iterates over each child of the given item.
Iterates over each child of the given item .
intr
Rc<IdentInterner>
cdata
Cmd
id
ast::NodeId
get_crate_data
G
callback
F