derive # 24:#[derive(Clone, Copy, Eq, PartialEq)] Clone Copy Eq PartialEq State Escape HexFirst HexSecond char Literal unescape # 41:pub fn unescape(s: &str) -> Vec { s str Vec u8 State bytes vec state Literal c s chars state Escape c bytes push state Literal bytes push state Literal bytes push state Literal state HexFirst c bytes extend format c into_bytes state Literal HexFirst c state HexSecond c c bytes extend format c into_bytes state Literal HexSecond first c ordinal format first c byte u8 from_str_radix ordinal unwrap bytes push byte state Literal byte c original format first c bytes extend original into_bytes state Literal Literal c state Escape c bytes extend c to_string as_bytes state Escape bytes push HexFirst bytes extend HexSecond c bytes extend format c into_bytes Literal bytes cfg # 104:#[cfg(test)] test tests unescape b bytes u8 Vec u8 bytes to_vec test unescape_nul assert_eq b unescape test unescape_nl assert_eq b unescape test unescape_tab assert_eq b unescape test unescape_carriage assert_eq b unescape test unescape_nothing_simple assert_eq b unescape test unescape_nothing_hex0 assert_eq b unescape test unescape_nothing_hex1 assert_eq b unescape test unescape_nothing_hex2 assert_eq b unescape