Module inline

Source
Expand description

Support for inlining external documentation into the current AST.

FunctionsΒ§

build_const_item πŸ”’
build_enum πŸ”’
build_external_trait πŸ”’
build_function πŸ”’
build_impl πŸ”’
Inline an impl, inherent or of a trait. The did must be for an impl.
build_impls πŸ”’
Builds all inherent implementations of an ADT (struct/union/enum) or Trait item/path/reexport.
build_macro πŸ”’
build_module πŸ”’
build_module_items πŸ”’
build_static πŸ”’
build_struct πŸ”’
build_type_alias πŸ”’
build_union πŸ”’
filter_non_trait_generics πŸ”’
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.
item_relative_path πŸ”’
load_attrs πŸ”’
merge_attrs πŸ”’
print_inlined_const πŸ”’
record_extern_fqn πŸ”’
Record an external fully qualified name in the external_paths cache.
record_extern_trait πŸ”’
separate_supertrait_bounds πŸ”’
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.
try_inline_glob πŸ”’