pub fn write_iterator<T: Copy>( write_t: &dyn Fn(&mut Formatter<'_>, T) -> Result<(), Error>, f: &mut Formatter<'_>, it: impl Iterator<Item = T>, ) -> Result<(), Error>
Rk.: in practice, T should be a shared ref