Function slash_formatter::add_end_file_separator [−][src]
pub fn add_end_file_separator<S: ?Sized + AsRef<str>>(s: &S) -> Cow<'_, str>
Add an ending FILE_SEPARATOR
into a string.
extern crate slash_formatter; assert_eq!( concat!("path", slash_formatter::file_separator!()), slash_formatter::add_end_file_separator("path") );