(text: &Wtf8)
| 64 | } |
| 65 | |
| 66 | fn from_string(text: &Wtf8) -> Option<Self> { |
| 67 | let mut chars = text.code_points(); |
| 68 | if chars.next()? != '!' { |
| 69 | return None; |
| 70 | } |
| 71 | |
| 72 | Self::from_char(chars.next()?) |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | #[derive(Debug, Copy, Clone, PartialEq)] |
nothing calls this directly
no test coverage detected