Skip to main content

are_intervals_contiguous

Function are_intervals_contiguous 

Source
pub fn are_intervals_contiguous(intervals: &[(u64, u64)]) -> bool
Expand description

Checks if intervals are contiguous (adjacent with no gaps).

Intervals are contiguous if, when sorted by start time, each interval’s start timestamp is exactly one more than the previous interval’s end timestamp.