[−][src]Module rustc_middle::hir::map

Modules

blocks

This module provides a simplified abstraction for working with code blocks identified by their integer NodeId. In particular, it captures a common set of attributes that all "function-like things" (represented by FnLike instances) share. For example, all FnLike instances have a type signature (be it explicit or inferred). And all FnLike instances have a body, i.e., the code that is run when the function-like thing it represents is invoked.

collector

Structs

Entry

Represents an entry and its parent HirId.

HirOwnerData
IndexedHir
Map
ParentHirIterator

An iterator that walks up the ancestor tree of a given HirId. Constructed using tcx.hir().parent_iter(hir_id).

Traits

Named

Functions

associated_body
fn_decl
fn_sig
hir_id_to_string
index_hir
is_body_owner
provide