Skip to main content

OsStrExtensionOwned

Trait OsStrExtensionOwned 

Source
pub trait OsStrExtensionOwned {
    // Required method
    fn into_utf8(self) -> Result<String>;
}
Expand description

Convenience trait for working with OsString

See File System Paths and Strings

Required Methods§

Source

fn into_utf8(self) -> Result<String>

Get the path as UTF-8, error if it’s not UTF-8

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl OsStrExtensionOwned for OsString

Source§

impl OsStrExtensionOwned for PathBuf

Implementors§