Function unescape
Source pub fn unescape<I>(i: I) -> Result<Vec<u8>, UnescapeError>
Expand description
Unescape the bytes previously escaped.
See crate for the exact rules.
§Errors
When encountering unexpected byte sequences.
§Example
let escaped = br"hello\xc3world";
let unescaped = escape_bytes::unescape(escaped)?;
assert_eq!(unescaped, b"hello\xc3world");