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

Concatenate multiple strings with slashes. It can also be used to get the literal '/'.

assert_eq!("path/to/file", slash_formatter::slash!("path", "to/", "/file/"));

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

let s = slash_formatter::slash!(s, "to/", "/file/");

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