hir_def::import_map

Function search_dependencies

source
pub fn search_dependencies(
    db: &dyn DefDatabase,
    krate: CrateId,
    query: &Query,
) -> FxHashSet<ItemInNs>
Expand description

Searches dependencies of krate for an importable name matching query.

This returns a list of items that could be imported from dependencies of krate.