Module rustdoc::clean::inline [−][src]
Expand description
Support for inlining external documentation into the current AST.
Functions
Builds a specific implementation of a type. The did
could be a type method or trait method.
Builds all inherent implementations of an ADT (struct/union/enum) or Trait item/path/reexport.
A trait’s generics clause actually contains all of the predicates for all of its associated types as well. We specifically move these clauses to the associated types instead when displaying, so when we’re generating the generics for the trait itself we need to be sure to remove them. We also need to remove the implied “recursive” Self: Trait bound.
parent_module
refers to the parent of the re-export, not the original item
Record an external fully qualified name in the external_paths cache.
Supertrait bounds for a trait are also listed in the generics coming from the metadata for a crate, so we want to separate those out and create a new list of explicit supertrait bounds to render nicely.
Attempt to inline a definition into this AST.