opencv_binding_generator/
iterator_ext.rs

1use crate::StringExt;
2
3pub trait IteratorExt {
4	fn join(self, sep: &str) -> String;
5}
6
7impl<T: Iterator<Item = impl AsRef<str>>> IteratorExt for T {
8	fn join(self, sep: &str) -> String {
9		let mut out = String::new();
10		out.extend_join(self, sep);
11		out
12	}
13}