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

Method from

python-alpm/src/types/relation.rs:15–20  ·  view source on GitHub ↗
(value: alpm_types::VersionOrSoname)

Source from the content-addressed store, hash-verified

13
14impl From<alpm_types::VersionOrSoname> for VersionOrSoname {
15 fn from(value: alpm_types::VersionOrSoname) -> Self {
16 match value {
17 alpm_types::VersionOrSoname::Version(v) => VersionOrSoname::Version(v.into()),
18 alpm_types::VersionOrSoname::Soname(s) => VersionOrSoname::Soname(s.to_string()),
19 }
20 }
21}
22
23impl TryFrom<VersionOrSoname> for alpm_types::VersionOrSoname {

Callers

nothing calls this directly

Calls 4

VersionClass · 0.70
SonameClass · 0.70
SonameV1Class · 0.70
SonameV2Class · 0.70

Tested by

no test coverage detected