pub fn build_map_mut_data<E, V, D, F>(data: &mut [D], val_fn: F) -> Vec<V>where E: Copy, F: Fn(&mut D) -> (E, V),