1 2 3 4 5 6 7 8 9 10 11 12 13
/// Creates a string from a literal or just an empty string #[macro_export] macro_rules! string { () => { String::new() }; ($s:literal) => { String::from($s) }; ($i:ident) => { String::from($i) }; }