pub fn resize_preserving_order<T: Clone>(vec: &[T], new_len: usize) -> Vec<T>
Resize the vec while preserving the order