Struct rustdoc::core::DocContext [−] [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>>,
    pub deref_trait_did: Cell<Option<DefId>>,
}
Unstable

Fields

krate
Unstable
maybe_typed
Unstable
input
Unstable
external_paths
Unstable
external_traits
Unstable
external_typarams
Unstable
inlined
Unstable
populated_crate_impls
Unstable
deref_trait_did
Unstable

Methods

impl<'tcx> DocContext<'tcx>

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

Unstable

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

Unstable

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

Unstable