paralegal_flow::utils::print

Function write_sep

Source
pub fn write_sep<E, I, F>(
    fmt: &mut Formatter<'_>,
    sep: &str,
    it: I,
    f: F,
) -> Result<(), Error>
where I: IntoIterator<Item = E>, F: FnMut(E, &mut Formatter<'_>) -> Result<(), Error>,
Expand description

Write all elements from it into the formatter fmt using f, separating them with sep