[][src]Macro slash_formatter::backslash

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

Concatenate multiple strings with backslashes.

#[macro_use] extern crate slash_formatter;

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

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

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

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