Struct rustdoc::core::DocContext [] [src]

pub struct DocContext<'a, 'tcx: 'a> {
    pub map: &'a Map<'tcx>,
    pub maybe_typed: MaybeTyped<'a, 'tcx>,
    pub input: Input,
    pub populated_crate_impls: RefCell<HashSet<CrateNum>>,
    pub deref_trait_did: Cell<Option<DefId>>,
    pub access_levels: RefCell<AccessLevels<DefId>>,
    pub renderinfo: RefCell<RenderInfo>,
    pub external_traits: RefCell<HashMap<DefIdTrait>>,
}
Unstable (rustdoc)

Fields

map: &'a Map<'tcx>
Unstable (rustdoc)
maybe_typed: MaybeTyped<'a, 'tcx>
Unstable (rustdoc)
input: Input
Unstable (rustdoc)
populated_crate_impls: RefCell<HashSet<CrateNum>>
Unstable (rustdoc)
deref_trait_did: Cell<Option<DefId>>
Unstable (rustdoc)
access_levels: RefCell<AccessLevels<DefId>>
Unstable (rustdoc)

Later on moved into clean::Crate

renderinfo: RefCell<RenderInfo>
Unstable (rustdoc)

Later on moved into html::render::CACHE_KEY

external_traits: RefCell<HashMap<DefIdTrait>>
Unstable (rustdoc)

Later on moved through clean::Crate into html::render::CACHE_KEY

Methods

impl<'b, 'tcx> DocContext<'b, 'tcx>
[src]

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

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

fn tcx<'a>(&'a self) -> TyCtxt<'a, 'tcx, 'tcx>