pub fn check_range<R>(range: R, bounds: RangeTo<usize>) -> Range<usize> ⓘwhere R: RangeBounds<usize>,