ide_db::items_locator

Function items_with_name

source
pub fn items_with_name<'a>(
    sema: &'a Semantics<'_, RootDatabase>,
    krate: Crate,
    name: NameToImport,
    assoc_item_search: AssocSearchMode,
) -> impl Iterator<Item = ItemInNs> + 'a
Expand description

Searches for importable items with the given name in the crate and its dependencies.