#[repr(C)]pub struct PkgIterator { /* private fields */ }
Implementations§
Source§impl PkgIterator
impl PkgIterator
Source§impl PkgIterator
impl PkgIterator
Source§impl PkgIterator
impl PkgIterator
Sourcepub fn current_state(&self) -> u8
pub fn current_state(&self) -> u8
Get the current state of a package.
Source§impl PkgIterator
impl PkgIterator
Sourcepub fn inst_state(&self) -> u8
pub fn inst_state(&self) -> u8
Get the installed state of a package.
Source§impl PkgIterator
impl PkgIterator
Sourcepub fn selected_state(&self) -> u8
pub fn selected_state(&self) -> u8
Get the selected state of a package.
Source§impl PkgIterator
impl PkgIterator
Sourcepub fn is_essential(&self) -> bool
pub fn is_essential(&self) -> bool
True if the package is essential.
Source§impl PkgIterator
impl PkgIterator
Sourcepub unsafe fn current_version(&self) -> UniquePtr<VerIterator>
pub unsafe fn current_version(&self) -> UniquePtr<VerIterator>
Get a pointer the the currently installed version.
§Safety
If the inner pointer is null segfaults can occur.
Using crate::raw::IntoRawIter::make_safe
to convert to an Option
is recommended.
The returned UniquePtr cannot outlive the cache.
Source§impl PkgIterator
impl PkgIterator
Sourcepub unsafe fn versions(&self) -> UniquePtr<VerIterator>
pub unsafe fn versions(&self) -> UniquePtr<VerIterator>
Get a pointer to the beginning of the VerIterator.
§Safety
If the inner pointer is null segfaults can occur.
Using crate::raw::IntoRawIter::make_safe
to convert to an Option
is recommended.
The returned UniquePtr cannot outlive the cache.
Source§impl PkgIterator
impl PkgIterator
Sourcepub unsafe fn provides(&self) -> UniquePtr<PrvIterator>
pub unsafe fn provides(&self) -> UniquePtr<PrvIterator>
Get the providers of this package.
§Safety
If the inner pointer is null segfaults can occur.
Using crate::raw::IntoRawIter::make_safe
to convert to an Option
is recommended.
The returned UniquePtr cannot outlive the cache.
Source§impl PkgIterator
impl PkgIterator
Sourcepub unsafe fn rdepends(&self) -> UniquePtr<DepIterator>
pub unsafe fn rdepends(&self) -> UniquePtr<DepIterator>
Get the reverse dependencies of this package
§Safety
If the inner pointer is null segfaults can occur.
Using crate::raw::IntoRawIter::make_safe
to convert to an Option
is recommended.
The returned UniquePtr cannot outlive the cache.
Source§impl PkgIterator
impl PkgIterator
Sourcepub unsafe fn unique(&self) -> UniquePtr<PkgIterator>
pub unsafe fn unique(&self) -> UniquePtr<PkgIterator>
Clone the pointer.
§Safety
If the inner pointer is null segfaults can occur.
Using crate::raw::IntoRawIter::make_safe
to convert to an Option
is recommended.
The returned UniquePtr cannot outlive the cache.