Trait anyhow_std::OsStrAnyhow
source · pub trait OsStrAnyhow {
// Required method
fn to_str_anyhow(&self) -> Result<&str>;
}
Expand description
Extend std::ffi::OsStr with anyhow methods
Required Methods§
sourcefn to_str_anyhow(&self) -> Result<&str>
fn to_str_anyhow(&self) -> Result<&str>
Produce a utf8 &str
or provide an error describing the string, truncated if long