(&self)
| 210 | |
| 211 | impl FormatCode { |
| 212 | pub const fn arg_count(&self) -> usize { |
| 213 | match self.code { |
| 214 | FormatType::Pad => 0, |
| 215 | FormatType::Str | FormatType::Pascal => 1, |
| 216 | _ => self.repeat, |
| 217 | } |
| 218 | } |
| 219 | |
| 220 | pub fn parse<I>( |
| 221 | chars: &mut Peekable<I>, |