Module rustdoc::clean::inline[][src]

Support for inlining external documentation into the current AST.

Re-exports

use std::iter::once;
use syntax::ast;
use rustc::hir;
use rustc::hir::def::Def;
use rustc::hir::def::CtorKind;
use rustc::hir::def_id::DefId;
use rustc::ty;
use rustc::util::nodemap::FxHashSet;
use rustc::util::nodemap::FxHashSet;
use core::DocContext;
use core::DocAccessLevels;
use doctree;
use clean;
use clean::GetDefId;
use clean::get_auto_traits_with_def_id;
use super::Clean;

Functions

build_const
build_enum
build_external_function
build_external_trait
build_impl
build_impls
build_module
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.

load_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