Skip to main content

intersects

Function intersects 

Source
pub fn intersects<T: Ord + Copy>(r1: &Range<T>, r2: &Range<T>) -> bool
Expand description

Determines if two half-open ranges overlap.

Empty ranges (where start >= end) do not overlap with any range.