pub fn decode_escaped(bytes: &[u8], each: impl FnMut(Result<char, u8>))Expand description
bytes decoded as Python’s surrogateescape decodes them: each valid
UTF-8 character as itself (Ok), each byte of an invalid sequence as one
item of its own (Err(byte)), in order.