rustfmt_nightly::lists

Function write_list

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