Skip to main content

find_in_prelude

Function find_in_prelude 

Source
fn find_in_prelude(
    db: &dyn SourceDatabase,
    local_def_map: &DefMap,
    item: ItemInNs,
    from: ModuleIdLt<'_>,
) -> Option<Choice>
Expand description

Returns single-segment path (i.e. without any prefix) if item is found in prelude and its name doesn’t clash in current scope.