Function slash_formatter::concat_with_slash_in_place[][src]

pub fn concat_with_slash_in_place<S2: AsRef<str>>(s1: &mut String, s2: S2)

Concatenate two strings with a slash.

extern crate slash_formatter;

let mut s = String::from("path");

slash_formatter::concat_with_slash_in_place(&mut s, "to/");

assert_eq!("path/to", s);