pub trait IterExtensions: Iterator {
// Provided method
fn reusable_format(self, sep: &str) -> ReusableIterFormat<'_, Self>
where Self: Sized { ... }
}Expand description
Format all iterator elements, separated by sep.
Unlike the underlying itertools::format, does not panic if fmt is called more than once.
Should be used for logging purposes since itertools::format will panic when used by multiple loggers.