pub enum SourceProperty {
Source(ArchProperty<Source>),
NoExtract(ArchProperty<String>),
B2Checksum(ArchProperty<SkippableChecksum<Blake2b512>>),
Md5Checksum(ArchProperty<SkippableChecksum<Md5>>),
Sha1Checksum(ArchProperty<SkippableChecksum<Sha1>>),
Sha256Checksum(ArchProperty<SkippableChecksum<Sha256>>),
Sha224Checksum(ArchProperty<SkippableChecksum<Sha224>>),
Sha384Checksum(ArchProperty<SkippableChecksum<Sha384>>),
Sha512Checksum(ArchProperty<SkippableChecksum<Sha512>>),
}
Expand description
Properties related to package sources.
Sources and related properties can be architecture specific.
The source
, noextract
and checksum related keywords in SRCINFO data correlate in ordering:
noextract
and any checksum entries are ordered in the same way as the respective source
entry they relate to. The representation of this correlation is normalized after initial
parsing.
Variants§
Source(ArchProperty<Source>)
NoExtract(ArchProperty<String>)
B2Checksum(ArchProperty<SkippableChecksum<Blake2b512>>)
Md5Checksum(ArchProperty<SkippableChecksum<Md5>>)
Sha1Checksum(ArchProperty<SkippableChecksum<Sha1>>)
Sha256Checksum(ArchProperty<SkippableChecksum<Sha256>>)
Sha224Checksum(ArchProperty<SkippableChecksum<Sha224>>)
Sha384Checksum(ArchProperty<SkippableChecksum<Sha384>>)
Sha512Checksum(ArchProperty<SkippableChecksum<Sha512>>)
Implementations§
Source§impl SourceProperty
impl SourceProperty
Sourcefn parser(input: &mut &str) -> ModalResult<SourceProperty>
fn parser(input: &mut &str) -> ModalResult<SourceProperty>
Recognizes package source related keyword assignments in SRCINFO data.
This function relies on Self::keyword_parser
to recognize the relevant keywords.
This function backtracks in case no keyword in this group matches.
Sourcefn keyword_parser(input: &mut &str) -> ModalResult<SourceKeyword>
fn keyword_parser(input: &mut &str) -> ModalResult<SourceKeyword>
Parse a SourceKeyword
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SourceProperty
impl RefUnwindSafe for SourceProperty
impl !Send for SourceProperty
impl !Sync for SourceProperty
impl Unpin for SourceProperty
impl UnwindSafe for SourceProperty
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