Skip to main content

component_for_path

Function component_for_path 

Source
pub fn component_for_path(
    path: &str,
    candidates: &[ComponentCandidate],
) -> String
Expand description

Determine the component for a path: longest matching dir prefix wins. Returns a String (candidate names are owned).