pub fn csv<I>(iter: I) -> Csv<I::IntoIter>where I: IntoIterator, I::IntoIter: Clone,
Concatenates Iterator items with , between each.
Iterator
,
This is equivalent to join(iter, ", ").
join(iter, ", ")
If Clone for the Iterator is too expensive, consider using csv_once().
Clone
csv_once()
let value = fmty::csv(["hola", "mundo"]); assert_eq!(value.to_string(), "hola, mundo");