pub enum SharedMetaProperty {
Description(PackageDescription),
Url(Url),
License(License),
Architecture(Architecture),
Changelog(RelativeFilePath),
Install(RelativeFilePath),
Group(String),
Option(MakepkgOption),
Backup(RelativeFilePath),
}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(RelativeFilePath)
A RelativeFilePath for a changelog of a package.
Install(RelativeFilePath)
A RelativeFilePath for an alpm-install-scriptlet of a package.
Group(String)
An alpm-package-group of a package.
Option(MakepkgOption)
A MakepkgOption used for building a package.
Backup(RelativeFilePath)
A RelativeFilePath for file in a package that should be backed up.
Implementations§
Sourcefn parser<'a>(
keyword: SharedMetaKeyword,
) -> impl Parser<Input<'a>, Self, ErrMode<ParseStack<'a>>>
fn parser<'a>( keyword: SharedMetaKeyword, ) -> impl Parser<Input<'a>, Self, ErrMode<ParseStack<'a>>>
Recognizes keyword assignments that may be present in both pkgbase and pkgname sections
of 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.
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