pub fn get_vec_range_clamped<T: Clone>( vec: &[T], range: Range<usize>, ) -> (Vec<T>, Range<usize>)
Return vec[range.start..range.end] where range is clamped to the length of vec.
vec[range.start..range.end]
range
vec