(self)
| 162 | /// if the code point is a surrogate (from U+D800 to U+DFFF). |
| 163 | #[inline] |
| 164 | pub fn to_char_lossy(self) -> char { |
| 165 | self.to_char().unwrap_or('\u{FFFD}') |
| 166 | } |
| 167 | |
| 168 | pub fn is_char_and(self, f: impl FnOnce(char) -> bool) -> bool { |
| 169 | self.to_char().is_some_and(f) |
no test coverage detected