pub(crate) fn write_list<I, T>(
    items: I,
    formatting: &ListFormatting<'_>
) -> Option<String>where
    I: IntoIterator<Item = T> + Clone,
    T: AsRef<ListItem>,