pub enum ClearableProperty {
Show 13 variants
Description,
Url,
Licenses,
Changelog,
Install,
Groups,
Options,
Backups,
Dependencies(Option<Architecture>),
OptionalDependencies(Option<Architecture>),
Provides(Option<Architecture>),
Conflicts(Option<Architecture>),
Replaces(Option<Architecture>),
}Expand description
Properties used in pkgname sections that can be cleared.
Some variants of this enum are architecture-specific, as they might only be cleared for a specific architecture, but not for another.
Clearing a keyword in SRCINFO data is achieved by an empty keyword assignment, e.g.:
depends =Variants§
Description
The description for a package.
Url
The upstream URL for a package.
Licenses
The licenses that apply to a package.
Changelog
The changelog for a package.
Install
The alpm-install-scriptlet for a package.
Groups
The alpm-package-groups a package is part of.
Options
The build tool options used for building a package.
Backups
The path to a file in a package that should be backed up.
Dependencies(Option<Architecture>)
The alpm-architecture of run-time dependencies.
OptionalDependencies(Option<Architecture>)
The alpm-architecture of optional dependencies.
Provides(Option<Architecture>)
The alpm-architecture of provisions.
Conflicts(Option<Architecture>)
The alpm-architecture of conflicts.
Replaces(Option<Architecture>)
The alpm-architecture of replacements.
Implementations§
Source§impl ClearableProperty
impl ClearableProperty
Recognizes all keyword assignments in SRCINFO data that represent a cleared
SharedMetaProperty.
A cleared property is represented by a keyword that is assigned an empty value. It indicates that the keyword assignment should remain empty for a given package.
Example:
pkgdesc =
depends =The above properties would indicate that both pkgdesc and the depends array are to be
cleared and left empty for a given package.
§Note
This function relies on the keyword already been parsed and expects it as parameter. The cursor should be positioned right after the keyword.
Sourcefn relation_parser<'a>(
keyword: RelationKeyword,
) -> impl Parser<Input<'a>, Self, ErrMode<ParseStack<'a>>>
fn relation_parser<'a>( keyword: RelationKeyword, ) -> impl Parser<Input<'a>, Self, ErrMode<ParseStack<'a>>>
Same as Self::shared_meta_parser, but for clearable RelationProperty.
§Note
This function relies on the keyword already been parsed and expects it as parameter. The cursor should be positioned right after the keyword.
Trait Implementations§
Source§impl Clone for ClearableProperty
impl Clone for ClearableProperty
Source§fn clone(&self) -> ClearableProperty
fn clone(&self) -> ClearableProperty
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more