Struct VerIterator

Source
#[repr(C)]
pub struct VerIterator { /* private fields */ }

Implementations§

Source§

impl VerIterator

Source

pub fn version(&self) -> &str

The version string of the version. “1.4.10”.

Source§

impl VerIterator

Source

pub fn arch(&self) -> &str

The Arch of the version. “amd64”.

Source§

impl VerIterator

Source

pub unsafe fn parent_pkg(&self) -> UniquePtr<PkgIterator>

Return the version’s parent PkgIterator.

§Safety

The returned UniquePtr cannot outlive the cache.

Source§

impl VerIterator

Source

pub fn section(&self) -> Result<&str, Exception>

The section of the version as shown in apt show.

Source§

impl VerIterator

Source

pub fn priority_str(&self) -> Result<&str, Exception>

The priority string as shown in apt show.

Source§

impl VerIterator

Source

pub fn size(&self) -> u64

The size of the .deb file.

Source§

impl VerIterator

Source

pub fn installed_size(&self) -> u64

The uncompressed size of the .deb file.

Source§

impl VerIterator

Source

pub fn is_downloadable(&self) -> bool

True if the version is able to be downloaded.

Source§

impl VerIterator

Source

pub fn is_installed(&self) -> bool

True if the version is currently installed

Source§

impl VerIterator

Source

pub fn source_name(&self) -> &str

Always contains the name, even if it is the same as the binary name

Source§

impl VerIterator

Source

pub fn source_version(&self) -> &str

Source§

impl VerIterator

Source

pub unsafe fn provides(&self) -> UniquePtr<PrvIterator>

Return Providers Iterator

§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 VerIterator

Source

pub unsafe fn depends(&self) -> UniquePtr<DepIterator>

Return Dependency Iterator

§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 VerIterator

Source

pub unsafe fn version_files(&self) -> UniquePtr<VerFileIterator>

Return the version files. You go through here to get the package files.

§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 VerIterator

Source

pub unsafe fn translated_desc(&self) -> UniquePtr<DescIterator>

This is for backend records lookups.

§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 VerIterator

Source

pub fn index(&self) -> u64

Source§

impl VerIterator

Source

pub unsafe fn unique(&self) -> UniquePtr<VerIterator>

Clone the pointer.

§Safety

The returned UniquePtr cannot outlive the cache.

Source§

impl VerIterator

Source

pub fn raw_next(self: Pin<&mut Self>)

Source§

impl VerIterator

Source

pub fn end(&self) -> bool

Trait Implementations§

Source§

impl ExternType for VerIterator

Source§

type Kind = Opaque

Source§

type Id

A type-level representation of the type’s C++ namespace and type name. Read more
Source§

impl UniquePtrTarget for VerIterator

Source§

impl VectorElement for VerIterator

Auto Trait Implementations§

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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>,

Source§

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.