Function ra_ap_hir_def::find_path::find_path_prefixed

source ·
pub fn find_path_prefixed(
    db: &dyn DefDatabase,
    item: ItemInNs,
    from: ModuleId,
    prefix_kind: PrefixKind,
    prefer_no_std: bool,
    prefer_prelude: bool
) -> Option<ModPath>
Expand description

Find a path that can be used to refer to a certain item. This can depend on from where you’re referring to the item, hence the from parameter.