Skip to main content

paths_overlap

Function paths_overlap 

Source
pub fn paths_overlap(left: &Path, right: &Path) -> bool
Expand description

true when two claimed paths cannot be held by different workers at once.

Comparison is component-wise, not textual: src/a and src/ab are distinct, while src/a and src/a/inner.rs collide because one contains the other.