Skip to main content

hir_parent_with_src_iter

Function hir_parent_with_src_iter 

Source
pub fn hir_parent_with_src_iter(
    tcx: TyCtxt<'_>,
    id: HirId,
) -> impl Iterator<Item = (Node<'_>, HirId)>
Expand description

Returns an iterator over successive parent nodes paired with the ID of the node which immediatly preceeded them.