Converts a [`std::num::ParseIntError`] into an [`Error::InvalidInteger`].
(e: std::num::ParseIntError)
| 205 | impl From<std::num::ParseIntError> for crate::error::Error { |
| 206 | /// Converts a [`std::num::ParseIntError`] into an [`Error::InvalidInteger`]. |
| 207 | fn from(e: std::num::ParseIntError) -> Self { |
| 208 | Self::InvalidInteger { kind: *e.kind() } |
| 209 | } |
| 210 | } |
| 211 | |
| 212 | impl<'a> From<ParseError<&'a str, ContextError>> for crate::error::Error { |
nothing calls this directly
no outgoing calls
no test coverage detected