Macro concat_with::concat_line
source · macro_rules! concat_line { ($($e:expr),* $(,)*) => { ... }; (prefix $p:expr $(, $e:expr)* $(,)*) => { ... }; (suffix $s:expr $(, $e:expr)* $(,)*) => { ... }; (prefix $p:expr, suffix $s:expr $(, $e:expr)* $(,)*) => { ... }; (suffix $s:expr, prefix $p:expr $(, $e:expr)* $(,)*) => { ... }; }
Expand description
Concatenates literals into a static string slice separated by a line break, \n
. Prefixes and suffixes can also be added.
assert_eq!("test\n10\nb\ntrue", concat_with::concat_line!("test", 10, 'b', true));
*/