pub fn fmt_comma_delimited<T>(f: &mut fmt::Formatter<'_>, parts: &[T]) -> fmt::Result
where
    T: fmt::Display,
{
    let mut iter = parts.iter();
    if let Some(part) = iter.next() {
        fmt::Display::fmt(part, f)?;
    }
    for part in iter {
        f.write_str(", ")?;
        fmt::Display::fmt(part, f)?;
    }
    Ok(())
}
/// Format an array into a comma-delimited string.
Format an array into a comma-delimited string.
Format an array into a comma - delimited string .
pub fn fmt_comma_delimited<T>(f: &mut fmt::Formatter<'_>, parts: &[T]) -> fmt::Result
where
    T: fmt::Display,
{
    let mut iter = parts.iter();
    if let Some(part) = iter.next() {
        fmt::Display::fmt(part, f)?;
    }
    for part in iter {
        f.write_str(", ")?;
        fmt::Display::fmt(part, f)?;
    }
    Ok(())
}
pub fn fmt_comma_delimited < T > ( f : & mut fmt :: Formatter < ' _ > , parts : & [ T ] ) -> fmt :: Result where T : fmt :: Display , { let mut iter = parts . iter ( ) ; if let Some ( part ) = iter . next ( ) { fmt :: Display :: fmt ( part , f ) ? ; } for part in iter { f . write_str ( " " ) ? ; fmt :: Display :: fmt ( part , f ) ? ; } Ok ( ( ) ) }
Format an array into a comma-delimited string.
Format an array into a comma - delimited string .
f
&mut fmt::Formatter<'_>
parts
&[T]
f
&mut fmt::Formatter<'_>
parts
&[T]