Macro slash_formatter::slash_in_place [−][src]
macro_rules! slash_in_place { () => { ... }; ($s:expr $(, $sc:expr)* $(,)*) => { ... }; }
Concatenate multiple strings with slashes. It can also be used to get the literal '/'
.
#[macro_use] extern crate slash_formatter; let mut s = String::from("path"); slash_in_place!(&mut s, "to/", "/file/"); assert_eq!("path/to/file", s);