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§
fn fold_item(&mut self, item: Item) -> Option<Item>
Sourcefn fold_inner_recur(&mut self, kind: ItemKind) -> ItemKind
fn fold_inner_recur(&mut self, kind: ItemKind) -> ItemKind
don’t override!
Sourcefn fold_item_recur(&mut self, item: Item) -> Item
fn fold_item_recur(&mut self, item: Item) -> Item
don’t override!
fn fold_mod(&mut self, m: Module) -> Module
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.