pub fn intersection(range1: &Range, range2: &Range) -> Option<Range>
Get the intersection of two ranges.