resize_preserving_order

Function resize_preserving_order 

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

Resize the vec while preserving the order