rustc_hir::hir_id

Type Alias HirIdMapEntry

Source
pub type HirIdMapEntry<'a, T> = IndexEntry<'a, HirId, T>;

Aliased Type§

enum HirIdMapEntry<'a, T> {
    Occupied(OccupiedEntry<'a, HirId, T>),
    Vacant(VacantEntry<'a, HirId, T>),
}

Variants§

§

Occupied(OccupiedEntry<'a, HirId, T>)

Existing slot with equivalent key.

§

Vacant(VacantEntry<'a, HirId, T>)

Vacant slot (no equivalent key in the map).

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: 40 bytes

Size for each variant:

  • Occupied: 32 bytes
  • Vacant: 32 bytes