Function slash_formatter::concat_with_backslash_in_place
source · pub fn concat_with_backslash_in_place<S2: AsRef<str>>(s1: &mut String, s2: S2)
Expand description
Concatenate two strings with a backslash.
let mut s = String::from("path");
slash_formatter::concat_with_backslash_in_place(&mut s, "to\\");
assert_eq!("path\\to", s);