[][src]Struct rustc::middle::resolve_lifetime::ResolveLifetimes

pub struct ResolveLifetimes {
    pub defs: FxHashMap<LocalDefId, FxHashMap<ItemLocalId, Region>>,
    pub late_bound: FxHashMap<LocalDefId, FxHashSet<ItemLocalId>>,
    pub object_lifetime_defaults: FxHashMap<LocalDefId, FxHashMap<ItemLocalId, Vec<ObjectLifetimeDefault>>>,
}
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Maps the id of each lifetime reference to the lifetime decl that it corresponds to.

Fields

defs: FxHashMap<LocalDefId, FxHashMap<ItemLocalId, Region>>
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Maps from every use of a named (not anonymous) lifetime to a Region describing how that region is bound

late_bound: FxHashMap<LocalDefId, FxHashSet<ItemLocalId>>
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Set of lifetime def ids that are late-bound; a region can be late-bound if (a) it does NOT appear in a where-clause and (b) it DOES appear in the arguments.

object_lifetime_defaults: FxHashMap<LocalDefId, FxHashMap<ItemLocalId, Vec<ObjectLifetimeDefault>>>
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

For each type and trait definition, maps type parameters to the trait object lifetime defaults computed from them.

Trait Implementations

impl ArenaAllocatable for ResolveLifetimes[src]

impl<'tcx> ArenaField<'tcx> for ResolveLifetimes[src]

impl Default for ResolveLifetimes[src]

impl<'__ctx> HashStable<StableHashingContext<'__ctx>> for ResolveLifetimes[src]

Auto Trait Implementations

impl RefUnwindSafe for ResolveLifetimes

impl Send for ResolveLifetimes

impl Sync for ResolveLifetimes

impl Unpin for ResolveLifetimes

impl UnwindSafe for ResolveLifetimes

Blanket Implementations

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

impl<T> ArenaAllocatable for T where
    T: Copy
[src]

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

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

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

impl<T> Erased for T[src]

impl<T> From<T> for T[src]

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

impl<T> MaybeResult<T> for T[src]

type Error = !

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

impl<E> SpecializationError for E[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.