Function slash_formatter::add_start_backslash_in_place
source · pub fn add_start_backslash_in_place(s: &mut String)
Expand description
Add a starting backslash into a string.
let mut s = String::from("path");
slash_formatter::add_start_backslash_in_place(&mut s);
assert_eq!("\\path", s);