Skip to main content

Module find_path

Module find_path 

Source
Expand description

An algorithm to find a path to refer to a certain item.

StructsΒ§

Choice πŸ”’
FindPathConfig
FindPathCtx πŸ”’

EnumsΒ§

PrefixKind
Stability πŸ”’

ConstantsΒ§

FIND_PATH_FUEL πŸ”’
MAX_PATH_LEN πŸ”’

FunctionsΒ§

calculate_best_path πŸ”’
calculate_best_path_local πŸ”’
find_in_dep πŸ”’
find_in_prelude πŸ”’
Returns single-segment path (i.e. without any prefix) if item is found in prelude and its name doesn’t clash in current scope.
find_in_scope πŸ”’
find_in_sysroot πŸ”’
find_local_import_locations πŸ”’
Finds locations in from.krate from which item can be imported by from.
find_path
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.
find_path_for_module πŸ”’
find_path_inner πŸ”’
Attempts to find a path to refer to the given item visible from the from ModuleIdLt<’_>
is_kw_kind_relative_to_from πŸ”’
path_kind_len πŸ”’