macro_rules! stringvec {
($($element:expr),* $(,)?) => { ... };
}Expand description
Creates a Vec<String> from a list of expressions.
This macro converts each expression to a String using the to_string()
method and collects them into a Vec<String>.
ยงExamples
use stringvec::stringvec;
let words = stringvec!["hello", 42, 'A', 3.14];
assert_eq!(words, vec!["hello", "42", "A", "3.14"]);