ide_db::imports::merge_imports

Function try_merge_trees

source
pub fn try_merge_trees(
    lhs: &UseTree,
    rhs: &UseTree,
    merge: MergeBehavior,
) -> Option<UseTree>
Expand description

Merge rhs into lhs keeping both intact. Returned AST is mutable.