[−][src]Macro slash_formatter::backslash
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);