Skip to main content

IntoOsString

Trait IntoOsString 

Source
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§

Source

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.
Source§

impl IntoOsString for OsString

Available on crate feature std only.
Source§

impl IntoOsString for PathBuf

Available on crate feature std only.
Source§

impl<'str> IntoOsString for &'str str

Source§

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.

Implementors§

Source§

impl IntoOsString for fslock::OsString

Source§

impl<'str> IntoOsString for &'str fslock::OsStr

Source§

impl<'str> IntoOsString for EitherOsStr<'str>