(value: alpm_types::VersionOrSoname)
| 13 | |
| 14 | impl 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 | |
| 23 | impl TryFrom<VersionOrSoname> for alpm_types::VersionOrSoname { |