Expand description
An algorithm to find a path to refer to a certain item.
StructsΒ§
- Choice π
- Find
Path Config - Find
Path πCtx
EnumsΒ§
- Prefix
Kind - 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
itemis 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.kratefrom whichitemcan be imported byfrom. - 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
fromparameter. - find_
path_ πfor_ module - find_
path_ πinner - Attempts to find a path to refer to the given
itemvisible from thefromModuleIdLt<β_> - is_
kw_ πkind_ relative_ to_ from - path_
kind_ πlen