pub fn unescape(segment: &str) -> Cow<'_, str>Expand description
A segment’s content: each escaped \ or / as the byte itself.
Borrows a segment with no escape. Expects a segment as parts yields it from a valid
path, where every \ escapes the byte after it.
assert_eq!(moq_net::path::unescape(r"a\/b\\c"), r"a/b\c");
assert_eq!(moq_net::path::unescape("plain"), "plain");