resize_preserving_order

Function resize_preserving_order 

Source
pub fn resize_preserving_order<T: Clone>(vec: &[T], new_len: usize) -> Vec<T>
Expand description

Resize the vec while preserving the order