(&self, magnitude: BigInt, radix: u32)
| 758 | |
| 759 | #[inline] |
| 760 | fn format_int_radix(&self, magnitude: BigInt, radix: u32) -> Result<String, FormatSpecError> { |
| 761 | match self.precision { |
| 762 | Some(_) => Err(FormatSpecError::PrecisionNotAllowed), |
| 763 | None => Ok(magnitude.to_str_radix(radix)), |
| 764 | } |
| 765 | } |
| 766 | |
| 767 | pub fn format_int(&self, num: &BigInt) -> Result<String, FormatSpecError> { |
| 768 | self.validate_format(FormatType::Decimal)?; |
no test coverage detected