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
Sourcefn parser<'a>(
keyword: RelationKeyword,
) -> impl Parser<Input<'a>, Self, ErrMode<ParseStack<'a>>>
fn parser<'a>( keyword: RelationKeyword, ) -> impl Parser<Input<'a>, Self, ErrMode<ParseStack<'a>>>
Recognizes package relation keyword assignments that may be present in both pkgbase and
pkgname sections in SRCINFO data.
§Note
This function relies on the keyword already been parsed and expects it as parameter. The cursor should be positioned right after the keyword.
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.