Function slash_formatter::concat_with_slash_owned[][src]

pub fn concat_with_slash_owned(s1: String, s2: &str) -> String

Concatenate two strings with a slash.

extern crate slash_formatter;

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

let s = slash_formatter::concat_with_slash_owned(s, "to/");

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