unsafe fn make_wstrs(spec: &FileSpec) -> (Vec<u16>, Vec<u16>) {
    let exts = spec
        .extensions
        .iter()
        .map(|s| normalize_extension(*s))
        .collect::<Vec<_>>();
    let name = format!("{} ({})", spec.name, exts.as_slice().join("; ")).to_wide();
    let extensions = exts.as_slice().join(";").to_wide();
    (name, extensions)
}
/// For each item in `spec`, returns a pair of utf16 strings representing the name
/// and the filter spec.
///
/// As an example: given the name `"Markdown Document"`, and the extensions
/// `&["md", "mdown", "markdown"]`, this will return
/// `("Markdown Document (*.md; *.mdown; *.markdown)", "*.md;*.mdown;*.markdown")`.
///
/// The first of these is displayed to the user, and the second is used to match the path.
For each item in `spec`, returns a pair of utf16 strings representing the name
and the filter spec.



The first of these is displayed to the user, and the second is used to match the path.
For each item in ` spec ` returns a pair of utf16 strings representing the name and the filter spec . The first of these is displayed to the user and the second is used to match the path .
unsafe fn make_wstrs(spec: &FileSpec) -> (Vec<u16>, Vec<u16>) {
    let exts = spec
        .extensions
        .iter()
        .map(|s| normalize_extension(*s))
        .collect::<Vec<_>>();
    let name = format!("{} ({})", spec.name, exts.as_slice().join("; ")).to_wide();
    let extensions = exts.as_slice().join(";").to_wide();
    (name, extensions)
}
unsafe fn make_wstrs ( spec : & FileSpec ) -> ( Vec < u16 > , Vec < u16 > ) { let exts = spec . extensions . iter ( ) . map ( | s | normalize_extension ( * s ) ) . collect :: < Vec < _ > > ( ) ; let name = format ! ( " " spec name exts as_slice ( ) join ( " " ) ) . to_wide ( ) ; let extensions = exts . as_slice ( ) . join ( " " ) . to_wide ( ) ; ( name , extensions ) }
For each item in `spec`, returns a pair of utf16 strings representing the name
and the filter spec.
For each item in ` spec ` returns a pair of utf16 strings representing the name and the filter spec .
spec
&FileSpec
spec
&FileSpec