Skip to main content

trace_import_path

Function trace_import_path 

Source
pub fn trace_import_path(
    graph: &RetainedModuleGraph,
    root: &Path,
    from_path: &str,
    to_path: &str,
) -> Result<ImportPathTrace, ImportPathEndpoint>
Expand description

Trace the shortest import path between two modules.

ยงErrors

Returns the endpoint that did not resolve to exactly one module in the graph.