Can this be `for (i, span) in spans.slice_to(path.segements.len()).iter().enumerate() { ... }`?