Skip to main content

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoOsString for &OsStr

Source§

impl IntoOsString for Cow<'_, OsStr>

Source§

impl IntoOsString for Box<OsStr>

Source§

impl IntoOsString for OsString

Implementors§