(iter: &mut ParseIter<I>)
| 297 | |
| 298 | impl<T: FormatBuf> CFormatSpecKeyed<T> { |
| 299 | pub fn parse<I>(iter: &mut ParseIter<I>) -> Result<Self, ParsingError> |
| 300 | where |
| 301 | I: Iterator<Item = T::Char>, |
| 302 | { |
| 303 | let mapping_key = parse_spec_mapping_key(iter)?; |
| 304 | let flags = parse_flags(iter); |
| 305 | let min_field_width = parse_quantity(iter)?; |
| 306 | let precision = parse_precision(iter)?; |
| 307 | consume_length(iter); |
| 308 | let format_type = parse_format_type(iter)?; |
| 309 | |
| 310 | let spec = CFormatSpec { |
| 311 | flags, |
| 312 | min_field_width, |
| 313 | precision, |
| 314 | format_type, |
| 315 | }; |
| 316 | Ok(Self { mapping_key, spec }) |
| 317 | } |
| 318 | } |
| 319 | |
| 320 | impl CFormatSpec { |
nothing calls this directly
no test coverage detected