Function layout_2020::flow::inline::line::sort_by_indices_in_place
source ยท fn sort_by_indices_in_place<T>(data: &mut [T], indices: Vec<usize>)
Expand description
Sort a mutable slice by the the given indices array in place, reording the slice so that final
value of slice[x]
is slice[indices[x]]
.