pub fn subtract_ranges(
left: impl IntoIterator<Item = MemoryRange>,
right: impl IntoIterator<Item = MemoryRange>,
) -> impl Iterator<Item = MemoryRange>Expand description
Returns an iterator over the ranges in left that are not in right.
For example, if left is [0..4MB, 8MB..12MB] and right is [2MB..6MB, 10MB..11MB], the resulting iterator will yield [0..2MB, 8MB..10MB, 11MB..12MB].
Panics if left or right are not sorted or are overlapping.