pub fn split_disjoint<'a, T>(
data: &'a mut [T],
bounds: &[(usize, usize)],
) -> Option<Vec<&'a mut [T]>>Expand description
Split a mutable slice into disjoint sub-slices at the given ascending offsets.
bounds are (start, end) pairs that must not overlap and be sorted. Returns
None if they are not valid for data.