hir_def::path

Function hir_segment_to_ast_segment

source
pub fn hir_segment_to_ast_segment(
    path: &Path,
    segment_idx: u32,
) -> Option<PathSegment>
Expand description

This function finds the AST segment that corresponds to the HIR segment with index segment_idx on the path that is lowered from path.