fn spans_match(a: &[(i32, i32)], b: &[(i32, i32)]) -> bool
Go spansMatch: equal layouts once zero-length spans are folded into the next span.
spansMatch