Skip to main content

relative_path

Function relative_path 

Source
pub fn relative_path<'a>(path: &'a Path, root: &Path) -> &'a Path
Expand description

Strip the project root prefix from a path for display, falling back to the full path.