pub fn fmt_comma_delimited<T: fmt::String>(fmt: &mut fmt::Formatter, parts: &[T]) -> fmt::Result {
    let last = parts.len() - 1;
    for (i, part) in parts.iter().enumerate() {
        try!(write!(fmt, "{}", part));
        if i < last {
            try!(write!(fmt, ", "));
        }
    }
    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: fmt::String>(fmt: &mut fmt::Formatter, parts: &[T]) -> fmt::Result {
    let last = parts.len() - 1;
    for (i, part) in parts.iter().enumerate() {
        try!(write!(fmt, "{}", part));
        if i < last {
            try!(write!(fmt, ", "));
        }
    }
    Ok(())
}
pub fn fmt_comma_delimited < T : fmt :: String > ( fmt : & mut fmt :: Formatter , parts : & [ T ] ) -> fmt :: Result { let last = parts . len ( ) - 1 ; for ( i , part ) in parts . iter ( ) . enumerate ( ) { try ! ( write ( fmt " " part ) ) ; if i < last { try ! ( write ( fmt " " ) ) ; } } Ok ( ( ) ) }
Format an array into a comma-delimited string.
Format an array into a comma - delimited string .
fmt
&mut fmt::Formatter
parts
&[T]
fmt
&mut fmt::Formatter
parts
&[T]