pub trait OsStrAnyhow {
    // Required method
    fn to_str_anyhow(&self) -> Result<&str>;
}
Expand description

Extend std::ffi::OsStr with anyhow methods

Required Methods§

source

fn to_str_anyhow(&self) -> Result<&str>

Produce a utf8 &str or provide an error describing the string, truncated if long

Implementations on Foreign Types§

source§

impl OsStrAnyhow for OsStr

Implementors§