Expand description
Support for inlining external documentation into the current AST.
Re-exportsΒ§
use std::iter::once;πuse std::sync::Arc;πuse rustc_attr_ir::AttributeKind;πuse rustc_attr_ir::DocInline;πuse rustc_attr_ir::find_attr;πuse rustc_data_structures::fx::FxHashSet;πuse rustc_data_structures::thin_vec::ThinVec;πuse rustc_data_structures::thin_vec::thin_vec;πuse rustc_hir::def::DefKind;πuse rustc_hir::def::MacroKinds;πuse rustc_hir::def::Res;πuse rustc_hir::def_id::DefId;πuse rustc_hir::def_id::DefIdSet;πuse rustc_hir::def_id::LocalDefId;πuse rustc_hir::def_id::LocalModId;πuse rustc_hir as hir;πuse rustc_hir::HirId;πuse rustc_hir::Mutability;πuse rustc_metadata::creader::CStore;πuse rustc_metadata::creader::LoadedMacro;πuse rustc_middle::ty::fast_reject::SimplifiedType;πuse rustc_middle::ty;πuse rustc_middle::ty::TyCtxt;πuse rustc_span::def_id::LOCAL_CRATE;πuse rustc_span::hygiene::MacroKind;πuse rustc_span::symbol::Symbol;πuse rustc_span::symbol::sym;πuse tracing::debug;πuse tracing::instrument;πuse tracing::instrument;πuse tracing::trace;πuse super::Item;πuse super::extract_cfg_from_attrs;πuse crate::clean;πuse crate::clean::Attributes;πuse crate::clean::CfgInfo;πuse crate::clean::ImplKind;πuse crate::clean::ItemId;πuse crate::clean::ItemKind;πuse crate::clean::Type;πuse crate::clean::clean_bound_vars;πuse crate::clean::clean_generics;πuse crate::clean::clean_impl_item;πuse crate::clean::clean_middle_assoc_item;πuse crate::clean::clean_middle_field;πuse crate::clean::clean_middle_ty;πuse crate::clean::clean_poly_fn_sig;πuse crate::clean::clean_trait_ref_with_constraints;πuse crate::clean::clean_ty;πuse crate::clean::clean_ty_alias_inner_type;πuse crate::clean::clean_ty_generics;πuse crate::clean::clean_variant_def;πuse crate::clean::utils;πuse crate::core::DocContext;πuse crate::formats::item_type::ItemType;π
FunctionsΒ§
- build_
const_ πitem - build_
enum π - build_
function π - build_
impl π - Inline an
impl, inherent or of a trait. Thedidmust 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_
trait π - build_
trait_ πalias - build_
type_ πalias - build_
union π - get_
item_ πpath - Get the public Rust path to an item. This is used to generate the URL to the itemβs page.
- 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_
self_ πbounds - should_
ignore_ πdef_ kind - should_
ignore_ πres - try_
inline π - Attempt to inline a definition into this AST.
- try_
inline_ πglob