pub fn convert_vector<T, W>(vec: Vec<T>) -> Vec<W>
where
    W: From<T>,
{
    vec.into_iter().map(W::from).collect()
}
/// Abstracts away a common closure that is used to convert the wrapped values of a vector
/// into another type.
Abstracts away a common closure that is used to convert the wrapped values of a vector
into another type.
Abstracts away a common closure that is used to convert the wrapped values of a vector into another type .
pub fn convert_vector<T, W>(vec: Vec<T>) -> Vec<W>
where
    W: From<T>,
{
    vec.into_iter().map(W::from).collect()
}
pub fn convert_vector < T , W > ( vec : Vec < T > ) -> Vec < W > where W : From < T > , { vec . into_iter ( ) . map ( W :: from ) . collect ( ) }
Abstracts away a common closure that is used to convert the wrapped values of a vector
into another type.
Abstracts away a common closure that is used to convert the wrapped values of a vector into another type .
vec
Vec<T>
vec
Vec<T>