pub fn get_at_indices<T: Clone, I: Borrow<usize>>( items: &[T], indices: impl IntoIterator<Item = I>, ) -> Result<Vec<T>>
This function “takes” the elements at indices from the slice items.
indices
items