Function mz_repr::explain_new::separated_text
source · pub fn separated_text<'a, I, C>(separator: &'a str, iter: I) -> impl Display + 'awhere
I: IntoIterator,
I::IntoIter: Clone + 'a,
I::Item: DisplayText<C> + 'a,
C: Default + 'a,Expand description
Creates a type whose fmt::Display implementation outputs each item in
iter separated by separator.
The difference between this and mz_ore::str::separated is that the latter
requires the iterator items to implement fmt::Display, whereas this version
wants them to implement DisplayText<C> for some rendering context C which
implements Default.