Function ranges_overlap_or_adjacent

Source
fn ranges_overlap_or_adjacent<T>(
    a_start: T,
    a_end: T,
    b_start: T,
    b_end: T,
) -> bool
where T: Ord + OrdAdjacency,
Expand description

Returns true if the ranges [a_start, a_end] and [b_start, b_end] overlap or are adjacent to each other.

All bounds are inclusive.