Struct rustdoc::core::DocContextUnstable [-] [+] [src]

pub struct DocContext<'tcx> {
    pub krate: &'tcx Crate,
    pub maybe_typed: MaybeTyped<'tcx>,
    pub input: Input,
    pub external_paths: ExternalPaths,
    pub external_traits: RefCell<Option<HashMap<DefId, Trait>>>,
    pub external_typarams: RefCell<Option<HashMap<DefId, String>>>,
    pub inlined: RefCell<Option<HashSet<DefId>>>,
    pub populated_crate_impls: RefCell<HashSet<CrateNum>>,
}

Fields

krate
maybe_typed
input
external_paths
external_traits
external_typarams
inlined
populated_crate_impls

Methods

impl<'tcx> DocContext<'tcx>

fn sess<'a>(&'a self) -> &'a Session

fn tcx_opt<'a>(&'a self) -> Option<&'a ctxt<'tcx>>

fn tcx<'a>(&'a self) -> &'a ctxt<'tcx>