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

Modules

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.

Structs

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

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

Functions