[−][src]Macro slash_formatter::slash
Concatenate multiple strings with slashes. It can also be used to get the literal '/'
.
#[macro_use] extern crate slash_formatter; assert_eq!("path/to/file", slash!("path", "to/", "/file/")); let s = String::from("path"); let s = slash!(s, "to/", "/file/"); assert_eq!("path/to/file", s);