join-string 0.3.0

Join the elements of iterators as a string, interspersing a separator between all elements.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use join_string::Join;

#[derive(Debug)]
struct MyStruct {
    #[allow(unused)]
    value: u32
}

fn main() {
    println!("{:?}", ['a', 'b', 'c'].join(", "));
    println!("{:?}", [
        &MyStruct { value: 1 },
        &MyStruct { value: 2 },
        &MyStruct { value: 3 },
    ].join(", "));
}