join

Function join 

Source
pub fn join<T: AsRef<str>>(parts: &[T], separator: &str) -> String
Expand description

Join a slice of strings with a separator

§Arguments

  • parts - Slice of strings to join
  • separator - Separator to place between strings

§Returns

A new string with all parts joined by the separator