find_intersection_range

Function find_intersection_range 

Source
pub fn find_intersection_range(
    old_start: i64,
    old_end: i64,
    new_start: i64,
    new_end: i64,
) -> Option<(i64, i64)>
Expand description

Find the intersection between two ID ranges

Returns (intersection_start, intersection_end) or None if no overlap