pub trait IntoOsString {
// Required method
fn into_os_string(self) -> Result<OsString, Error>;
}Expand description
Conversion of anything into an owned OS-native string. If allocation fails, an error shall be returned.
Required Methods§
Sourcefn into_os_string(self) -> Result<OsString, Error>
fn into_os_string(self) -> Result<OsString, Error>
Converts with possible allocation error.
Implementations on Foreign Types§
Source§impl IntoOsString for String
Available on crate feature std only.
impl IntoOsString for String
Available on crate feature
std only.Source§impl IntoOsString for OsString
Available on crate feature std only.
impl IntoOsString for OsString
Available on crate feature
std only.Source§impl IntoOsString for PathBuf
Available on crate feature std only.
impl IntoOsString for PathBuf
Available on crate feature
std only.Source§impl<'str> IntoOsString for &'str str
impl<'str> IntoOsString for &'str str
Source§impl<'str> IntoOsString for &'str OsStr
Available on crate feature std only.
impl<'str> IntoOsString for &'str OsStr
Available on crate feature
std only.Source§impl<'str> IntoOsString for &'str Path
Available on crate feature std only.
impl<'str> IntoOsString for &'str Path
Available on crate feature
std only.