gix_path

Function try_os_str_into_bstr

Source
pub fn try_os_str_into_bstr(
    path: Cow<'_, OsStr>,
) -> Result<Cow<'_, BStr>, Utf8Error>
Expand description

Like into_bstr(), but takes Cow<OsStr> as input for a lossless, but fallible, conversion.