Trait rustdoc::visit::DocVisitor

source ·
pub(crate) trait DocVisitor: Sized {
    // Provided methods
    fn visit_item(&mut self, item: &Item) { ... }
    fn visit_inner_recur(&mut self, kind: &ItemKind) { ... }
    fn visit_item_recur(&mut self, item: &Item) { ... }
    fn visit_mod(&mut self, m: &Module) { ... }
    fn visit_crate(&mut self, c: &Crate) { ... }
}

Provided Methods§

source

fn visit_item(&mut self, item: &Item)

source

fn visit_inner_recur(&mut self, kind: &ItemKind)

don’t override!

source

fn visit_item_recur(&mut self, item: &Item)

don’t override!

source

fn visit_mod(&mut self, m: &Module)

source

fn visit_crate(&mut self, c: &Crate)

Object Safety§

This trait is not object safe.

Implementors§

source§

impl DocVisitor for LocalSourcesCollector<'_, '_>

source§

impl DocVisitor for SourceCollector<'_, '_>

source§

impl<'a, 'b> DocVisitor for CoverageCalculator<'a, 'b>

source§

impl<'a, 'tcx> DocVisitor for DocTestVisibilityLinter<'a, 'tcx>

source§

impl<'a, 'tcx> DocVisitor for LinkCollector<'a, 'tcx>

source§

impl<'a, 'tcx> DocVisitor for SyntheticImplCollector<'a, 'tcx>

source§

impl<'a, 'tcx> DocVisitor for Linter<'a, 'tcx>

source§

impl<'cache> DocVisitor for ItemAndAliasCollector<'cache>

source§

impl<'cx, 'cache> DocVisitor for TypeImplCollector<'cx, 'cache>