1 2 3 4 5 6
pub fn convert_vecs<T, U>(v: Vec<T>) -> Vec<U> where T: Into<U>, { v.into_iter().map(Into::into).collect() }