pub enum RelationProperty {
Dependency(ArchProperty<RelationOrSoname>),
OptionalDependency(ArchProperty<OptionalDependency>),
Provides(ArchProperty<RelationOrSoname>),
Conflicts(ArchProperty<PackageRelation>),
Replaces(ArchProperty<PackageRelation>),
}Expand description
Properties related to package relations.
This only handles the shared package relations that can be used in both pkgbase and pkgname
sections.
pkgbase specific relations are explicitly handled in the RawPackageBase enum.
See [alpm-package-relation] for further details on package relations and [alpm-sonamev1] for
information on soname handling.
[alpm-package-relation]: https://alpm.archlinux.page/specifications/alpm-package-relation.7.html
[alpm-sonamev1]: https://alpm.archlinux.page/specifications/alpm-sonamev1.7.html
Variants§
Dependency(ArchProperty<RelationOrSoname>)
An ArchProperty<RelationOrSoname> for a run-time dependency.
OptionalDependency(ArchProperty<OptionalDependency>)
An ArchProperty<OptionalDependency> for an optional dependency.
Provides(ArchProperty<RelationOrSoname>)
An ArchProperty<RelationOrSoname> for a provision.
Conflicts(ArchProperty<PackageRelation>)
An ArchProperty<PackageRelation> for a conflict.
Replaces(ArchProperty<PackageRelation>)
An ArchProperty<PackageRelation> for a replacement.
Implementations§
Source§impl RelationProperty
impl RelationProperty
Sourcepub fn architecture(&self) -> Option<Architecture>
pub fn architecture(&self) -> Option<Architecture>
Returns the Architecture of the current variant.
Can be used to extract the architecture without knowing which variant this is.