pub enum SharedMetaProperty {
Description(PackageDescription),
Url(Url),
License(License),
Architecture(Architecture),
Changelog(RelativePath),
Install(RelativePath),
Group(String),
Option(MakepkgOption),
Backup(RelativePath),
}
Expand description
Metadata properties that may be shared between pkgbase
and pkgname
sections in SRCINFO data.
Variants§
Description(PackageDescription)
Url(Url)
A Url
.
License(License)
A License
.
Architecture(Architecture)
An Architecture
.
Changelog(RelativePath)
A RelativePath
for a changelog file of a package.
Install(RelativePath)
A RelativePath
for an alpm-install-scriptlet file of a package.
Group(String)
An alpm-package-group of a package.
Option(MakepkgOption)
A MakepkgOption
used for building a package.
Backup(RelativePath)
A RelativePath
for file in a package that should be backed up.
Implementations§
Sourcefn parser(input: &mut &str) -> ModalResult<SharedMetaProperty>
fn parser(input: &mut &str) -> ModalResult<SharedMetaProperty>
Recognizes keyword assignments that may be present in both pkgbase
and pkgname
sections
of SRCINFO data.
This function relies on SharedMetaKeyword::parser
to recognize the relevant keywords.
This function backtracks in case no keyword in this group matches.
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more