Macro slash_formatter::backslash_in_place[][src]

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

Concatenate multiple strings with backslashes.

#[macro_use] extern crate slash_formatter;

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

backslash_in_place!(&mut s, "to\\", "\\file\\");

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