macro_rules! concat_with_backslash {
    ($($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 backslash. Prefixes and suffixes can also be added.

assert_eq!("test\\10\\b\\true", slash_formatter::concat_with_backslash!("test", 10, 'b', true));