[−][src]Struct alpm_rs::package::Package
Methods
impl Package
[src]
pub fn vercmp(a: &str, b: &str) -> i32
[src]
Compare two version strings and determine which one is 'newer'.
pub fn validation(&self) -> i32
[src]
Returns the method used to validate a package during install.
Flags:
alpm_rs::enum::ALPM_PKG_VALIDATION_UNKNOWN alpm_rs::enum::ALPM_PKG_VALIDATION_NONE alpm_rs::enum::ALPM_PKG_VALIDATION_MD5SUM alpm_rs::enum::ALPM_PKG_VALIDATION_SHA256SUM alpm_rs::enum::ALPM_PKG_VALIDATION_SIGNATURE
pub fn filename(&self) -> &str
[src]
Gets the name of the file from which the package was loaded.
pub fn base(&self) -> &str
[src]
Returns the package base name.
pub fn base64_sig(&self) -> &str
[src]
Returns the package name.
pub fn name(&self) -> &str
[src]
Returns the package name.
pub fn version(&self) -> &str
[src]
Returns the package version as a string. This includes all available epoch, version, and pkgrel components. Use vercmp() to compare version strings if necessary.
pub fn origin(&self) -> PkgFrom
[src]
Returns the origin of the package.
pub fn description(&self) -> &str
[src]
Returns the package description.
pub fn db(&self) -> AlpmDB
[src]
pub fn url(&self) -> &str
[src]
Returns the package URL.
pub fn required_by(&self) -> PackageList
[src]
Computes the list of packages requiring a given package.
pub fn optional_for(&self) -> PackageList
[src]
Computes the list of packages optionally requiring a given package.
pub fn checkmd5sum(&self) -> bool
[src]
Check the integrity (with md5) of a package from the sync cache.
pub fn newer_version(&self, dbs: &DBList) -> Option<Package>
[src]
pub fn free(&self) -> bool
[src]
Free package
Trait Implementations
impl AlpmListItem<Package> for Package
[src]
impl From<*mut alpm_pkg_t> for Package
[src]
fn from(c_pkg: *mut alpm_pkg_t) -> Package
[src]
impl Drop for Package
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,