/// Converts a slice of AsRef<OsStr> to comma separated String
///
/// Panics if the slice is empty.
Converts a slice of AsRef to comma separated String
Panics if the slice is empty.
Converts a slice of AsRef to comma separated String Panics if the slice is empty .
pub fn concatenate_list_of_os_str(os_strs: &[impl AsRef<OsStr>]) -> String {
    let mut iter = os_strs.iter().map(AsRef::as_ref);
    let mut string = to_utf(iter.next().unwrap()); // May panic
    for os_str in iter {
        string += ", ";
        string += &to_utf(os_str);
    }
    string
}
pub fn concatenate_list_of_os_str ( os_strs : & [ impl AsRef < OsStr > ] ) -> String { let mut iter = os_strs . iter ( ) . map ( AsRef :: as_ref ) ; let mut string = to_utf ( iter . next ( ) . unwrap ( ) ) ; // May panic for os_str in iter { string += " " ; string += & to_utf ( os_str ) ; } string }
Converts a slice of AsRef<OsStr> to comma separated String
Panics if the slice is empty.
Converts a slice of AsRef<OsStr > to comma separated String Panics if the slice is empty .
os_strs
&[impl AsRef<OsStr>]