(iter: &mut ParseIter<I>)
| 672 | } |
| 673 | |
| 674 | fn parse_precision<C, I>(iter: &mut ParseIter<I>) -> Result<Option<CFormatPrecision>, ParsingError> |
| 675 | where |
| 676 | C: FormatChar, |
| 677 | I: Iterator<Item = C>, |
| 678 | { |
| 679 | if iter.next_if(|(_, c)| c.eq_char('.')).is_some() { |
| 680 | let quantity = parse_quantity(iter)?; |
| 681 | let precision = quantity.map_or(CFormatPrecision::Dot, CFormatPrecision::Quantity); |
| 682 | return Ok(Some(precision)); |
| 683 | } |
| 684 | Ok(None) |
| 685 | } |
| 686 | |
| 687 | fn parse_text_inside_parentheses<T, I>(iter: &mut ParseIter<I>) -> Option<T> |
| 688 | where |
no test coverage detected