Expand description
Handle syntactic aspects of merging UseTrees.
Modulesยง
- version_
sort ๐
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 - flatten_
one_ ๐style_ tree - get_
single_ ๐subtree - make_
use_ ๐tree_ from_ list - make_
use_ ๐tree_ from_ parts - make_
use_ ๐tree_ list - make_
use_ ๐with_ tree - merge_
single_ ๐subtree_ into_ parent_ tree - one_
style_ ๐tree_ list - path_
is_ ๐self - path_
len ๐ - path_
segment_ ๐cmp - recursive_
merge ๐ - Recursively merges rhs to lhs
- recursive_
normalize ๐ - Recursively normalizes a use tree and its subtrees (if any).
- remove_
subtree_ ๐if_ only_ self - split_
prefix ๐ - try_
merge_ imports - Merge
rhsintolhskeeping both intact. - try_
merge_ trees - Merge
rhsintolhskeeping both intact. - try_
merge_ ๐trees_ with_ factory - try_
normalize_ import - Normalizes a use item by:
- try_
normalize_ ๐use_ tree - use_
tree_ ๐cmp - Orders use trees following
rustfmtโs version sorting algorithm for ordering imports. - use_
tree_ ๐cmp_ bin_ search - Use tree comparison func for binary searching for merging.
- use_
tree_ ๐cmp_ by_ tree_ list_ glob_ or_ alias - Orders for use trees with equal paths (see
use_tree_cmpfor details about use tree ordering). - with_
use_ ๐tree_ list - wrap_
in_ ๐tree_ list