pub fn format_list<F, T, E>(
    buf: &mut F,
    elems: impl IntoIterator<Item = T>,
    format_elem: impl FnMut(ListElementWriter<'_, F>, T) -> Result<Nestable, E>
) -> Result<Nestable, E> where
    F: FormatBuffer