#[repr(C)]pub struct PkgFileIterator { /* private fields */ }
Implementations§
Source§impl PkgFileIterator
impl PkgFileIterator
Sourcepub fn index_type(&self) -> Result<&str, Exception>
pub fn index_type(&self) -> Result<&str, Exception>
The Index Type of the PackageFile. Known values are:
Debian Package Index, Debian Translation Index, Debian dpkg status file,
Source§impl PkgFileIterator
impl PkgFileIterator
Sourcepub fn is_downloadable(&self) -> bool
pub fn is_downloadable(&self) -> bool
true
if the PackageFile contains packages that can be downloaded
Source§impl PkgFileIterator
impl PkgFileIterator
Sourcepub unsafe fn unique(&self) -> UniquePtr<PkgFileIterator>
pub unsafe fn unique(&self) -> UniquePtr<PkgFileIterator>
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.
Trait Implementations§
Source§impl ExternType for PkgFileIterator
impl ExternType for PkgFileIterator
impl UniquePtrTarget for PkgFileIterator
Auto Trait Implementations§
impl !Freeze for PkgFileIterator
impl RefUnwindSafe for PkgFileIterator
impl !Send for PkgFileIterator
impl !Sync for PkgFileIterator
impl !Unpin for PkgFileIterator
impl UnwindSafe for PkgFileIterator
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