Skip to main content

vec_init

Function vec_init 

Source
pub fn vec_init<T: Clone>(v: &[T]) -> Vec<T>
Expand description

Return all but the last element (i.e. init of the vector).