unescape_to_osstr

Function unescape_to_osstr 

Source
fn unescape_to_osstr(s: &str) -> Result<Cow<'_, OsStr>>
Expand description

Unescape a string into a Rust OsStr which is really just an alias for a byte array, but we also impose a constraint that it can not have an embedded NUL byte.