(bytes: &[u8])
| 313 | } |
| 314 | |
| 315 | fn escape_bytes(bytes: &[u8]) -> String { |
| 316 | let mut s = String::new(); |
| 317 | for &b in bytes { |
| 318 | s.push_str(&escape_byte(b)); |
| 319 | } |
| 320 | s |
| 321 | } |
| 322 | |
| 323 | fn escape_byte(byte: u8) -> String { |
| 324 | use std::ascii::escape_default; |
no test coverage detected