unescape

Function unescape 

Source
pub fn unescape<I>(i: I) -> Result<Vec<u8>, UnescapeError>
where I: IntoIterator, I::Item: Borrow<u8>,
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");