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. Thedid
must be for animpl
. - 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 π
- 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 π
- 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 π