foundation_toolings 0.0.2

Development tooling server: reverse proxy, file watcher, hot reload — built on valtron and native APIs, zero async runtime deps
Documentation
1
2
3
4
5
6
7
8
9
10
11
/// `VecStringExt` implements convenient methods to extract a `Vec<String>` from
/// any `Vec<&str>` type.
pub trait VecStringExt {
    fn to_vec_string(self) -> Vec<String>;
}

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