[][src]Macro slash_formatter::concat_with_backslash

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

Concatenate multiple strings with backslashes.

#[macro_use] extern crate slash_formatter;

assert_eq!(r"path\to\file", concat_with_backslash!("path", r"to\", r"\file\"));

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

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

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