[−][src]Struct rustc_middle::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>>>,
}

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

Fields

defs: FxHashMap<LocalDefId, FxHashMap<ItemLocalId, Region>>

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>>

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>>>

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

Trait Implementations

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> 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> 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 = !

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.

impl<T> WithConstness for T[src]