macro_rules! file_separator {
    ($($t:tt)*) => { ... };
}
Expand description

Concatenate multiple strings with FILE_SEPARATOR. It can also be used to get the literal FILE_SEPARATOR.

assert_eq!(slash_formatter::concat_with_file_separator!("path", "to", "file"), slash_formatter::file_separator!("path", concat!("to", slash_formatter::file_separator!()), concat!(slash_formatter::file_separator!(), "file", slash_formatter::file_separator!())));

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

let s = slash_formatter::file_separator!(s, concat!("to", slash_formatter::file_separator!()), concat!(slash_formatter::file_separator!(), "file", slash_formatter::file_separator!()));

assert_eq!(slash_formatter::concat_with_file_separator!("path", "to", "file"), s);