Expand description

Support for inlining external documentation into the current AST.

Functions

build_enum 🔒
build_impl 🔒
Inline an impl, inherent or of a trait. The did must be for an impl.
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.
load_attrs 🔒
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.
try_inline 🔒
Attempt to inline a definition into this AST.