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 CacheBuilder<'_, '_>

Source§

impl DocFolder for ImportFinder

Source§

impl DocFolder for CfgPropagator<'_, '_>

Source§

impl DocFolder for StabilityPropagator<'_, '_>

Source§

impl DocFolder for AliasedNonLocalStripper<'_>

Source§

impl DocFolder for NonLocalStripper<'_>

Source§

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

Source§

impl DocFolder for ImplStripper<'_, '_>

Source§

impl DocFolder for ImportStripper<'_>

Source§

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