Trait rustdoc::fold::DocFolder

source ·
pub(crate) trait DocFolder: Sized {
    // Provided methods
    fn fold_item(&mut self, item: Item) -> Option<Item> { ... }
    fn fold_inner_recur(&mut self, kind: ItemKind) -> ItemKind { ... }
    fn fold_item_recur(&mut self, item: Item) -> Item { ... }
    fn fold_mod(&mut self, m: Module) -> Module { ... }
    fn fold_crate(&mut self, c: Crate) -> Crate { ... }
}

Provided Methods§

source

fn fold_item(&mut self, item: Item) -> Option<Item>

source

fn fold_inner_recur(&mut self, kind: ItemKind) -> ItemKind

don’t override!

source

fn fold_item_recur(&mut self, item: Item) -> Item

don’t override!

source

fn fold_mod(&mut self, m: Module) -> Module

source

fn fold_crate(&mut self, c: Crate) -> Crate

Object Safety§

This trait is not object safe.

Implementors§

source§

impl DocFolder for ImportFinder

source§

impl<'a> DocFolder for ImplStripper<'a, '_>

source§

impl<'a, 'tcx> DocFolder for CacheBuilder<'a, 'tcx>

source§

impl<'a, 'tcx> DocFolder for CfgPropagator<'a, 'tcx>

source§

impl<'a, 'tcx> DocFolder for rustdoc::passes::strip_hidden::Stripper<'a, 'tcx>

source§

impl<'a, 'tcx> DocFolder for rustdoc::passes::stripper::Stripper<'a, 'tcx>

source§

impl<'tcx> DocFolder for AliasedNonLocalStripper<'tcx>

source§

impl<'tcx> DocFolder for NonLocalStripper<'tcx>

source§

impl<'tcx> DocFolder for ImportStripper<'tcx>