Function slash_formatter::add_start_file_separator[][src]

pub fn add_start_file_separator<S: ?Sized + AsRef<str>>(s: &S) -> Cow<'_, str>

Add a starting FILE_SEPARATOR into a string.

extern crate slash_formatter;

assert_eq!(
    concat!(slash_formatter::file_separator!(), "path"),
    slash_formatter::add_start_file_separator("path")
);