Function range_except

Source
pub(super) fn range_except(
    a: Range<usize>,
    b: Range<usize>,
) -> (Range<usize>, Range<usize>)
Expand description

Calculate range (A - B), the result might be the union of two ranges when B is totally included in the A.