Function slash_formatter::add_start_file_separator
source · pub fn add_start_file_separator<S: ?Sized + AsRef<str>>(s: &S) -> Cow<'_, str>
Expand description
Add a starting FILE_SEPARATOR
into a string.
assert_eq!(
concat!(slash_formatter::file_separator!(), "path"),
slash_formatter::add_start_file_separator("path")
);