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

Method from

python-alpm/src/types/openpgp.rs:15–24  ·  view source on GitHub ↗
(ident: alpm_types::OpenPGPIdentifier)

Source from the content-addressed store, hash-verified

13
14impl From<alpm_types::OpenPGPIdentifier> for OpenPGPIdentifier {
15 fn from(ident: alpm_types::OpenPGPIdentifier) -> Self {
16 match ident {
17 alpm_types::OpenPGPIdentifier::OpenPGPKeyId(key_id) => {
18 OpenPGPIdentifier::OpenPGPKeyId(OpenPGPKeyId(key_id))
19 }
20 alpm_types::OpenPGPIdentifier::OpenPGPv4Fingerprint(fingerprint) => {
21 OpenPGPIdentifier::OpenPGPv4Fingerprint(OpenPGPv4Fingerprint(fingerprint))
22 }
23 }
24 }
25}
26
27impl From<OpenPGPIdentifier> for alpm_types::OpenPGPIdentifier {

Callers

nothing calls this directly

Calls 2

OpenPGPKeyIdClass · 0.70

Tested by

no test coverage detected