(text: &Wtf8)
| 42 | |
| 43 | impl FormatParse for FormatConversion { |
| 44 | fn parse(text: &Wtf8) -> (Option<Self>, &Wtf8) { |
| 45 | let Some(conversion) = Self::from_string(text) else { |
| 46 | return (None, text); |
| 47 | }; |
| 48 | let mut chars = text.code_points(); |
| 49 | chars.next(); // Consume the bang |
| 50 | chars.next(); // Consume one r,s,a char |
| 51 | (Some(conversion), chars.as_wtf8()) |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | impl FormatConversion { |
no test coverage detected