Skip to main content

Module cache

Module cache 

Source

Re-exportsΒ§

use std::mem; πŸ”’
use rustc_attr_ir::StabilityLevel; πŸ”’
use rustc_data_structures::fx::FxHashMap; πŸ”’
use rustc_data_structures::fx::FxHashSet; πŸ”’
use rustc_data_structures::fx::FxIndexMap; πŸ”’
use rustc_data_structures::fx::FxIndexSet; πŸ”’
use rustc_hir::def_id::CrateNum; πŸ”’
use rustc_hir::def_id::DefId; πŸ”’
use rustc_hir::def_id::DefIdMap; πŸ”’
use rustc_hir::def_id::DefIdSet; πŸ”’
use rustc_metadata::creader::CStore; πŸ”’
use rustc_middle::ty; πŸ”’
use rustc_middle::ty::TyCtxt; πŸ”’
use rustc_span::Symbol; πŸ”’
use tracing::debug; πŸ”’
use crate::clean::types::ExternalLocation; πŸ”’
use crate::clean; πŸ”’
use crate::clean::ExternalCrate; πŸ”’
use crate::clean::ItemId; πŸ”’
use crate::clean::ItemKind; πŸ”’
use crate::clean::PrimitiveType; πŸ”’
use crate::config::RenderOptions; πŸ”’
use crate::core::DocContext; πŸ”’
use crate::fold::DocFolder; πŸ”’
use crate::formats::Impl; πŸ”’
use crate::formats::item_type::ItemType; πŸ”’
use crate::html::render::IndexItem; πŸ”’
use crate::html::render::IndexItemInfo; πŸ”’
use crate::visit_lib::RustdocEffectiveVisibilities; πŸ”’

StructsΒ§

Cache πŸ”’
This cache is used to store information about the clean::Crate being rendered in order to provide more useful documentation. This contains information like all implementors of a trait, all traits a type implements, documentation for all known traits, etc.
CacheBuilder πŸ”’
This struct is used to wrap the cache and tcx in order to run DocFolder.
OrphanImplItem πŸ”’
PathInfo πŸ”’

EnumsΒ§

ParentStackItem πŸ”’
Information about trait and type parents is tracked while traversing the item tree to build the cache.

FunctionsΒ§

add_item_to_search_index πŸ”’
clean_impl_generics πŸ”’
handle_orphan_impl_child πŸ”’
We have a parent, but we don’t know where they’re defined yet. Wait for later to index this item. See Cache::orphan_impl_items.