Function items_with_name

Source
pub fn items_with_name(
    db: &RootDatabase,
    krate: Crate,
    name: NameToImport,
    assoc_item_search: AssocSearchMode,
) -> impl Iterator<Item = (ItemInNs, Complete)>
Expand description

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