Trait naughtyfy::api::Path

source ·
pub trait Path {
    fn as_os_str(&self) -> &OsStr;
}
Expand description

Converts the implemented types to OsStr using as_os_str() method.
This is NOT std::path::Path

Example

let path = std::path::Path::new("/usr/bin");
let ostr = path.as_os_str();
assert_eq!(ostr,"/usr/bin");

Required Methods§

Implementations on Foreign Types§

Implementors§