insert_use_with_editor

Function insert_use_with_editor 

Source
pub fn insert_use_with_editor(
    scope: &ImportScope,
    path: Path,
    cfg: &InsertUseConfig,
    syntax_editor: &mut SyntaxEditor,
    syntax_factory: &SyntaxFactory,
)
Expand description

Insert an import path into the given file/node. A merge value of none indicates that no import merging is allowed to occur.