Skip to main contentModule span_map
Source use std::path::Path; ๐ use std::path::PathBuf; ๐ use rustc_data_structures::fx::FxHashMap; ๐ use rustc_data_structures::fx::FxIndexMap; ๐ use rustc_hir as hir; ๐ use rustc_hir::def::DefKind; ๐ use rustc_hir::def::Res; ๐ use rustc_hir::def_id::DefId; ๐ use rustc_hir::def_id::LOCAL_CRATE; ๐ use rustc_hir::intravisit; ๐ use rustc_hir::intravisit::Visitor; ๐ use rustc_hir::ExprKind; ๐ use rustc_hir::HirId; ๐ use rustc_hir::Item; ๐ use rustc_hir::ItemKind; ๐ use rustc_hir::Mod; ๐ use rustc_hir::Node; ๐ use rustc_hir::QPath; ๐ use rustc_middle::hir::nested_filter; ๐ use rustc_middle::ty; ๐ use rustc_middle::ty::TyCtxt; ๐ use rustc_span::def_id::LocalModId; ๐ use rustc_span::BytePos; ๐ use rustc_span::ExpnKind; ๐ use crate::clean; ๐ use crate::clean::PrimitiveType; ๐ use crate::clean::rustc_span; ๐ use crate::html::sources; ๐
- LazyTypeckResults ๐
- Lazily computed & cached [
ty::TypeckResults]. - Span ๐
- This is a stripped down version of [
rustc_span::Span] that only contains the start and end
byte positions of the span. - SpanMapVisitor ๐
- LinkFromSrc ๐
- This enum allows us to store two different kinds of information:
- DUMMY_SP ๐
- collect_spans_and_sources ๐
- This function will do at most two things: