foundation_core 0.0.6

Central crate for all foundation crates for the ewe-platform project
Documentation
1
2
3
4
5
6
7
8
9
10
11
/// `VecExt` implements convenient methods to extract a that can be applied to
/// `Vec<T>` objects for special methods.
pub trait VecExt {
    fn to_vec_string(self) -> Vec<String>;
}

impl VecExt for Vec<&str> {
    fn to_vec_string(self) -> Vec<String> {
        self.iter().map(|item| String::from(*item)).collect()
    }
}