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