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
Url
Licenses
Changelog
Install
Groups
Options
Backups
Dependencies(Option<Architecture>)
OptionalDependencies(Option<Architecture>)
Provides(Option<Architecture>)
Conflicts(Option<Architecture>)
Replaces(Option<Architecture>)
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.
This function backtracks in case no keyword in this group matches or in case the property is not cleared.
Sourcefn relation_parser(input: &mut &str) -> ModalResult<ClearableProperty>
fn relation_parser(input: &mut &str) -> ModalResult<ClearableProperty>
Same as Self::shared_meta_parser
, but for clearable RelationProperty.
Trait Implementations§
Source§impl Clone for ClearableProperty
impl Clone for ClearableProperty
Source§fn clone(&self) -> ClearableProperty
fn clone(&self) -> ClearableProperty
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more