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>,