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

pub struct DocContext<'a, 'tcx: 'a, 'rcx: 'a, 'cstore: 'rcx> {
    pub tcx: TyCtxt<'a, 'tcx, 'tcx>,
    pub resolver: &'a RefCell<Resolver<'rcx, 'cstore>>,
    pub crate_name: Option<String>,
    pub cstore: Rc<CStore>,
    pub populated_all_crate_impls: Cell<bool>,
    pub access_levels: RefCell<AccessLevels<DefId>>,
    pub renderinfo: RefCell<RenderInfo>,
    pub external_traits: RefCell<FxHashMap<DefId, Trait>>,
    pub active_extern_traits: RefCell<Vec<DefId>>,
    pub ty_substs: RefCell<FxHashMap<Def, Type>>,
    pub lt_substs: RefCell<FxHashMap<DefId, Lifetime>>,
    pub impl_trait_bounds: RefCell<FxHashMap<DefId, Vec<GenericBound>>>,
    pub send_trait: Option<DefId>,
    pub fake_def_ids: RefCell<FxHashMap<CrateNum, DefId>>,
    pub all_fake_def_ids: RefCell<FxHashSet<DefId>>,
    pub generated_synthetics: RefCell<FxHashSet<(DefId, DefId)>>,
    pub all_traits: Vec<DefId>,
}

Fields

The stack of module NodeIds up till this point

Later on moved into clean::Crate

Later on moved into html::render::CACHE_KEY

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

Used while populating external_traits to ensure we don't process the same trait twice at the same time.

Table type parameter definition -> substituted type

Table node id of lifetime parameter definition -> substituted lifetime

Table DefId of impl Trait in argument position -> bounds

Maps (type_id, trait_id) -> auto trait impl

Methods

impl<'a, 'tcx, 'rcx, 'cstore> DocContext<'a, 'tcx, 'rcx, 'cstore>
[src]

Call the closure with the given parameters set as the substitutions for a type alias' RHS.

Auto Trait Implementations

impl<'a, 'tcx, 'rcx, 'cstore> !Send for DocContext<'a, 'tcx, 'rcx, 'cstore>

impl<'a, 'tcx, 'rcx, 'cstore> !Sync for DocContext<'a, 'tcx, 'rcx, 'cstore>

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Important traits for &'a mut R

Immutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Important traits for &'a mut R

Mutably borrows from an owned value. Read more

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<E> SpecializationError for E
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Create an error for a missing method specialization. Defaults to panicking with type, trait & method names. S is the encoder/decoder state type, T is the type being encoded/decoded, and the arguments are the names of the trait and method that should've been overridden. Read more

impl<T> Erased for T
[src]

impl<T> Send for T where
    T: ?Sized
[src]

impl<T> Sync for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> MaybeResult for T
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

impl<'a, T> Captures for T where
    T: ?Sized
[src]