Expand description
Handle syntactic aspects of merging UseTrees.
Enums§
- Merge
Behavior - What type of merges are allowed.
- Normalization
Style - Style to follow when normalizing a use tree.
Functions§
- common_
prefix - Traverses both paths until they differ, returning the common prefix of both.
- eq_
attrs - eq_
visibility - try_
merge_ imports - Merge
rhs
intolhs
keeping both intact. Returned AST is mutable. - try_
merge_ trees - Merge
rhs
intolhs
keeping both intact. Returned AST is mutable. - try_
normalize_ import - Normalizes a use item by:
- try_
normalize_ use_ tree - Normalizes a use tree (see
try_normalize_import
doc). - try_
normalize_ use_ tree_ mut