Trait phollaits::VecExt [−][src]
pub trait VecExt { fn to_vec_string(self) -> Vec<String>; }
Expand description
Trait contains some extensions for Vec.
Required methods
fn to_vec_string(self) -> Vec<String>
[src]
fn to_vec_string(self) -> Vec<String>
[src]method to convert into Vec
Implementations on Foreign Types
method to convert Vec<&str> into Vec
Example
extern crate phollaits; use phollaits::*; const a: [&'static str; 3] = [ "a", "b", "c" ]; fn main() { let b = a.to_vec(); let c = vec!("a".to_string(), "b".to_string(), "c".to_string()); assert_eq!(b.to_vec_string(), c); }