Function format_xml::join
source · [−]pub fn join<T>(sep: &'static str, collection: T) -> impl Display + Debug where
T: IntoIterator,
<T as IntoIterator>::Item: Display,
<T as IntoIterator>::IntoIter: Clone,
Expand description
Displays an iterable with given separator between each item.
let result = fmtools::join("--", &[1, 2, 3, 4]).to_string();
assert_eq!(result, "1--2--3--4");