Skip to main content

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

Available on crate feature std only.
Source§

impl ToOsStr for OsStr

Available on crate feature std only.
Source§

impl ToOsStr for OsString

Available on crate feature std only.
Source§

impl ToOsStr for Path

Available on crate feature std only.
Source§

impl ToOsStr for PathBuf

Available on crate feature std only.

Implementors§

Source§

impl ToOsStr for fslock_arti_fork::OsStr

Source§

impl ToOsStr for fslock_arti_fork::OsString

Source§

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