Function static_apply_reordering

Source
pub fn static_apply_reordering<T: Copy, const N: usize>(
    values: &mut [T; N],
    indices: &[usize; N],
)
Expand description

Reorders the values in place according to the ordering defined by indices. The indices is an ordering produced by sorted_indices/static_sorted_indices and encodes the sorted order of the keys (the names of the tag types).

“Static” in the name refers to the fact that it takes and returns an array of statically known size, avoiding Vec allocations.