macro_rules! backslash {
    () => { ... };
    ($s:expr $(, $sc:expr)* $(,)*) => { ... };
}
Expand description

Concatenate multiple strings with backslashes.

assert_eq!("path\\to\\file", slash_formatter::backslash!("path", "to\\", "\\file\\"));

let s = String::from("path");

let s = slash_formatter::backslash!(s, "to\\", "\\file\\");

assert_eq!("path\\to\\file", s);