pub type RootVariableMinCaptureList<'tcx> = FxIndexMap<HirId, MinCaptureList<'tcx>>;
Expand description

Part of MinCaptureInformationMap; Maps a root variable to the list of CapturedPlace. Used to track the minimum set of Places that need to be captured to support all Places captured by the closure starting at a given root variable.

This provides a convenient and quick way of checking if a variable being used within a closure is a capture of a local variable.

Aliased Type§

struct RootVariableMinCaptureList<'tcx> {
    pub(crate) core: IndexMapCore<HirId, Vec<CapturedPlace<'tcx>, Global>>,
    hash_builder: BuildHasherDefault<FxHasher>,
}

Fields§

§core: IndexMapCore<HirId, Vec<CapturedPlace<'tcx>, Global>>§hash_builder: BuildHasherDefault<FxHasher>

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 56 bytes