Struct rustc_middle::hir::IndexedHir [−][src]
pub struct IndexedHir<'hir> {
map: IndexVec<LocalDefId, Option<&'hir mut OwnerNodes<'hir>>>,
parenting: FxHashMap<LocalDefId, HirId>,
}Expand description
Result of HIR indexing.
Fields
map: IndexVec<LocalDefId, Option<&'hir mut OwnerNodes<'hir>>>Contents of the HIR owned by each definition. None for definitions that are not HIR owners.
parenting: FxHashMap<LocalDefId, HirId>Map from each owner to its parent’s HirId inside another owner.
Trait Implementations
fn allocate_from_iter<'a>(
arena: &'a Arena<'tcx>,
iter: impl IntoIterator<Item = Self>
) -> &'a mut [Self]
Auto Trait Implementations
impl<'hir> !RefUnwindSafe for IndexedHir<'hir>
impl<'hir> !Send for IndexedHir<'hir>
impl<'hir> !Sync for IndexedHir<'hir>
impl<'hir> Unpin for IndexedHir<'hir>
impl<'hir> !UnwindSafe for IndexedHir<'hir>
Blanket Implementations
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. 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