Function simplify_range

Source
pub(crate) fn simplify_range<R>(range: R, len: usize) -> Range<usize>
where R: RangeBounds<usize>,