pub fn write_vec<T>( write_t: &dyn Fn(&mut Formatter<'_>, &T) -> Result<(), Error>, f: &mut Formatter<'_>, v: &[T], ) -> Result<(), Error>