pub fn each_child_of_item<F, G>(cdata: Cmd, id: DefIndex, get_crate_data: G, callback: F)
    where F: FnMut(DefLike, ast::Name, ty::Visibility),
          G: FnMut(ast::CrateNum) -> Rc<CrateMetadata>,
{
    // Find the item.
    let item_doc = match cdata.get_item(id) {
        None => return,
        Some(item_doc) => item_doc,
    };

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