Struct alpm::Pkg

source ·
pub struct Pkg<'h> { /* private fields */ }

Implementations§

source§

impl<'h> Pkg<'h>

source

pub fn name(&self) -> &'h str

source

pub fn check_md5sum(&self) -> Result<()>

source

pub fn should_ignore(&self) -> bool

source

pub fn filename(&self) -> &'h str

source

pub fn base(&self) -> Option<&'h str>

source

pub fn version(&self) -> &'h Ver

source

pub fn origin(&self) -> PackageFrom

source

pub fn desc(&self) -> Option<&'h str>

source

pub fn url(&self) -> Option<&'h str>

source

pub fn build_date(&self) -> i64

source

pub fn install_date(&self) -> Option<i64>

source

pub fn packager(&self) -> Option<&'h str>

source

pub fn md5sum(&self) -> Option<&'h str>

source

pub fn sha256sum(&self) -> Option<&'h str>

source

pub fn arch(&self) -> Option<&'h str>

source

pub fn size(&self) -> i64

source

pub fn isize(&self) -> i64

source

pub fn reason(&self) -> PackageReason

source

pub fn validation(&self) -> PackageValidation

source

pub fn licenses(&self) -> AlpmList<'h, &'h str>

source

pub fn groups(&self) -> AlpmList<'h, &'h str>

source

pub fn depends(&self) -> AlpmList<'h, Dep<'h>>

source

pub fn optdepends(&self) -> AlpmList<'h, Dep<'h>>

source

pub fn checkdepends(&self) -> AlpmList<'h, Dep<'h>>

source

pub fn makedepends(&self) -> AlpmList<'h, Dep<'h>>

source

pub fn conflicts(&self) -> AlpmList<'h, Dep<'h>>

source

pub fn provides(&self) -> AlpmList<'h, Dep<'h>>

source

pub fn replaces(&self) -> AlpmList<'h, Dep<'h>>

source

pub fn files(&self) -> FileList

source

pub fn backup(&self) -> AlpmList<'h, Backup>

source

pub fn db(&self) -> Option<Db<'h>>

source

pub fn changelog(&self) -> Result<ChangeLog<'_>>

source

pub fn required_by(&self) -> AlpmListMut<'h, String>

source

pub fn optional_for(&self) -> AlpmListMut<'h, String>

source

pub fn base64_sig(&self) -> Option<&'h str>

source

pub fn has_scriptlet(&self) -> bool

source

pub fn sig(&self) -> Result<Signature>

source§

impl<'a> Pkg<'a>

Trait Implementations§

source§

impl<'a> AsAlpmListItemPtr<'a> for Pkg<'a>

§

type Output = Pkg<'a>

source§

fn as_ptr(&self) -> *mut c_void

source§

const FREE: Option<unsafe extern "C" fn(_ptr: *mut c_void)> = None

source§

impl<'h> AsPkg for Pkg<'h>

source§

fn as_pkg(&self) -> Pkg<'_>

source§

impl<'h> Clone for Pkg<'h>

source§

fn clone(&self) -> Pkg<'h>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'h> Debug for Pkg<'h>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'h> Copy for Pkg<'h>

source§

impl<'a> IntoRawAlpmList<'a, Pkg<'a>> for AlpmList<'a, LoadedPackage<'a>>

source§

impl<'a> IntoRawAlpmList<'a, Pkg<'a>> for AlpmList<'a, Package<'a>>

source§

impl<'a> Push<'a> for Pkg<'a>

Auto Trait Implementations§

§

impl<'h> !RefUnwindSafe for Pkg<'h>

§

impl<'h> !Send for Pkg<'h>

§

impl<'h> !Sync for Pkg<'h>

§

impl<'h> Unpin for Pkg<'h>

§

impl<'h> !UnwindSafe for Pkg<'h>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.