/// Strip private items from the point of view of a crate or externally from a
/// crate, specified by the `xcrate` flag.
Strip private items from the point of view of a crate or externally from a
crate, specified by the `xcrate` flag.
Strip private items from the point of view of a crate or externally from a crate specified by the ` xcrate ` flag .
pub fn strip_private(mut krate: clean::Crate) -> plugins::PluginResult {
    // This stripper collects all *retained* nodes.
    let mut retained = DefIdSet();
    let access_levels = krate.access_levels.clone();
    // strip all private items
    {
        let mut stripper = Stripper {
            retained: &mut retained,
            access_levels: &access_levels,
            update_retained: true,
        };
        krate = ImportStripper.fold_crate(stripper.fold_crate(krate));
    }
    // strip all impls referencing private items
    let mut stripper = ImplStripper { retained: &retained };
    stripper.fold_crate(krate)
}
pub fn strip_private ( mut krate : clean :: Crate ) -> plugins :: PluginResult { // This stripper collects all *retained* nodes. let mut retained = DefIdSet ( ) ; let access_levels = krate . access_levels . clone ( ) ; // strip all private items { let mut stripper = Stripper { retained : & mut retained , access_levels : & access_levels , update_retained : true , } ; krate = ImportStripper . fold_crate ( stripper . fold_crate ( krate ) ) ; } // strip all impls referencing private items let mut stripper = ImplStripper { retained : & retained } ; stripper . fold_crate ( krate ) }
Strip private items from the point of view of a crate or externally from a
crate, specified by the `xcrate` flag.
Strip private items from the point of view of a crate or externally from a crate specified by the ` xcrate ` flag .
krate
clean::Crate