(case: Case)
| 39 | } |
| 40 | |
| 41 | fn format_inf(case: Case) -> String { |
| 42 | let inf = match case { |
| 43 | Case::Lower => "inf", |
| 44 | Case::Upper => "INF", |
| 45 | }; |
| 46 | |
| 47 | inf.to_string() |
| 48 | } |
| 49 | |
| 50 | pub const fn decimal_point_or_empty(precision: usize, alternate_form: bool) -> &'static str { |
| 51 | match (precision, alternate_form) { |
no test coverage detected