IntoOsString

Trait IntoOsString 

Source
pub trait IntoOsString {
    // Required method
    fn into_os_string(self) -> OsString;
}
Available on crate feature std only.
Expand description

A similar trait to ToString, but for OsStrs, and avoiding an extra allocation when applied to a OsString.

Required Methods§

Source

fn into_os_string(self) -> OsString

Converts value into an OS string.

Implementations on Foreign Types§

Source§

impl IntoOsString for &OsStr

Source§

fn into_os_string(self) -> OsString

Available on crate feature std only.
Source§

impl IntoOsString for Cow<'_, OsStr>

Source§

fn into_os_string(self) -> OsString

Available on crate feature std only.
Source§

impl IntoOsString for Box<OsStr>

Source§

fn into_os_string(self) -> OsString

Available on crate feature std only.
Source§

impl IntoOsString for OsString

Source§

fn into_os_string(self) -> OsString

Available on crate feature std only.

Implementors§