Macro doe::split_to_vec
source · [−]macro_rules! split_to_vec {
($a:expr,$b:expr) => { ... };
}Expand description
split_to_vec!() can be used to a:&str split by b:&str and collect to Vec<String>
use doe::*;
let s = split_to_vec!("aa.bb",".");
assert_eq!(s,vec![format!("aa"),format!("bb")]);