ToOsStr

Trait ToOsStr 

Source
pub trait ToOsStr {
    // Required method
    fn to_os_str(&self) -> Result<EitherOsStr<'_>, Error>;
}
Expand description

Conversion of anything to an either borrowed or owned OS-native string. If allocation fails, an error shall be returned.

Required Methods§

Source

fn to_os_str(&self) -> Result<EitherOsStr<'_>, Error>

Converts with possible allocation error.

Implementations on Foreign Types§

Source§

impl ToOsStr for str

Source§

impl ToOsStr for String

Source§

impl ToOsStr for OsStr

Source§

impl ToOsStr for OsString

Source§

impl ToOsStr for Path

Source§

impl ToOsStr for PathBuf

Implementors§

Source§

impl ToOsStr for fslock::OsStr

Source§

impl ToOsStr for fslock::OsString

Source§

impl<'str> ToOsStr for EitherOsStr<'str>