(&mut self, s: &str)
| 98 | } |
| 99 | |
| 100 | pub fn write_string(&mut self, s: &str) { |
| 101 | for byte in s.bytes() { |
| 102 | match byte { |
| 103 | // printable ASCII byte or newline |
| 104 | 0x20..=0x7e | b'\n' => self.write_byte(byte), |
| 105 | // not part of printable ASCII range |
| 106 | _ => self.write_byte(0xfe), |
| 107 | } |
| 108 | |
| 109 | } |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | use core::fmt; |
no test coverage detected