unescape_to_path

Function unescape_to_path 

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

Unescape a string into a Rust Path, which is like a byte array but with a few constraints:

  • Cannot contain an embedded NUL
  • Cannot be empty, or longer than PATH_MAX