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