(self, f: impl FnOnce(char) -> bool)
| 166 | } |
| 167 | |
| 168 | pub fn is_char_and(self, f: impl FnOnce(char) -> bool) -> bool { |
| 169 | self.to_char().is_some_and(f) |
| 170 | } |
| 171 | |
| 172 | pub fn encode_wtf8(self, dst: &mut [u8]) -> &mut Wtf8 { |
| 173 | unsafe { Wtf8::from_mut_bytes_unchecked(encode_utf8_raw(self.value, dst)) } |
no test coverage detected