Skip to main content

classify

Function classify 

Source
pub fn classify(
    path: &Path,
    src_roots: &[PathBuf],
    path_rewrites: &[(PathBuf, PathBuf)],
    cwd: Option<&Path>,
) -> PathLabel
Expand description

Classify a resolved source path for the source pane title.

cwd is the directory the debugger was invoked from — paths under it are displayed relative to it (e.g. src/lib.rs). src_roots are tried next for workspace-relative display. path_rewrites handle stdlib CI paths.