rustdoc::fold

Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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 StabilityPropagator<'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>