is_path

Function is_path 

Source
pub fn is_path(p: &Path, segments: &PathSegments<'_>) -> bool