MCPcopy Create free account
hub / github.com/archlinux/alpm / from

Method from

alpm-types/src/error.rs:207–209  ·  view source on GitHub ↗

Converts a [`std::num::ParseIntError`] into an [`Error::InvalidInteger`].

(e: std::num::ParseIntError)

Source from the content-addressed store, hash-verified

205impl 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
212impl<'a> From<ParseError<&'a str, ContextError>> for crate::error::Error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected