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

assert_eq!("test/10/b/true", slash_formatter::concat_with_slash!("test", 10, 'b', true));