Skip to main content

Module path

Module path 

Source
Expand description

Transforms syntax into Path objects, ideally with accounting for hygiene

Functionsยง

hir_segment_to_ast_segment
This function finds the AST segment that corresponds to the HIR segment with index segment_idx on the path that is lowered from path.
lower_path ๐Ÿ”’
Converts an ast::Path to Path. Works with use trees. It correctly handles $crate based path from macro call.