pub enum PackageEntry {
Metadata(Box<MetadataEntry>),
InstallScriptlet(String),
}
Expand description
An entry in a package archive.
This can be either a metadata file (such as PKGINFO, BUILDINFO, or ALPM-MTREE) or an alpm-install-scriptlet file.
Variants§
Metadata(Box<MetadataEntry>)
A metadata entry in the package archive.
See MetadataEntry
for the different types of metadata entries.
This variant is boxed to avoid large allocations
InstallScriptlet(String)
An alpm-install-scriptlet file in the package.
Trait Implementations§
Source§impl Clone for PackageEntry
impl Clone for PackageEntry
Source§fn clone(&self) -> PackageEntry
fn clone(&self) -> PackageEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for PackageEntry
impl RefUnwindSafe for PackageEntry
impl Send for PackageEntry
impl Sync for PackageEntry
impl Unpin for PackageEntry
impl UnwindSafe for PackageEntry
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