pub fn try_os_str_into_bstr( path: Cow<'_, OsStr>, ) -> Result<Cow<'_, BStr>, Utf8Error>
Like into_bstr(), but takes Cow<OsStr> as input for a lossless, but fallible, conversion.
into_bstr()
Cow<OsStr>