(&self, code: CodePoint)
| 46 | |
| 47 | #[inline(always)] |
| 48 | pub fn can_encode(&self, code: CodePoint) -> bool { |
| 49 | match self { |
| 50 | Self::Ascii => code.is_ascii(), |
| 51 | Self::Utf8 => code.to_char().is_some(), |
| 52 | Self::Wtf8 => true, |
| 53 | } |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | pub trait DeduceStrKind { |
no test coverage detected