[−][src]Macro concat_with::concat_impl
Create macros used for concatenating literals separated by a specific literal.
#[macro_use] extern crate concat_with; concat_impl! { #[macro_export] /// Concatenates literals into a static string slice separated by a comma and a whitespace, `, `. Prefixes and suffixes can also be added. concat_with_comma => ", ", #[macro_export] /// Concatenates literals into a static string slice separated by a colon, `:`. Prefixes and suffixes can also be added. concat_with_colon => ':', } assert_eq!("test, 10, b, true", concat_with_comma!("test", 10, 'b', true)); assert_eq!("test:10:b:true", concat_with_colon!("test", 10, 'b', true));