Struct DepIterator

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

Implementations§

Source§

impl DepIterator

Source

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

The Parent PkgIterator for this dependency

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

Source

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

The Parent VerIterator for this dependency

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

Source

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

String representation of the dependency compare type “”,“<=”,“>=”,“<”,“>”,“=”,“!=”

This returns Error for no compare type.

Source§

impl DepIterator

Source

pub fn dep_type(&self) -> u8

Source§

impl DepIterator

Source

pub fn is_critical(&self) -> bool

Returns true if the dependency type is critical.

Depends, PreDepends, Conflicts, Obsoletes, Breaks will return true.

Suggests, Recommends, Replaces and Enhances will return false.

Source§

impl DepIterator

Source

pub fn is_reverse(&self) -> bool

Return True if the dep is reverse, false if normal

Source§

impl DepIterator

Source

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

Source§

impl DepIterator

Source

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

Return the Target Package for the dependency.

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

Source

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

Returns a CxxVector of VerIterators.

§Safety

These can not be owned and will need to be Cloned with unique.

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 DepIterator

Source

pub fn or_dep(&self) -> bool

Return true if this dep is Or’d with the next. The last dep in the or group will return False.

Source§

impl DepIterator

Source

pub fn index(&self) -> u64

Source§

impl DepIterator

Source

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

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.

Source§

impl DepIterator

Source

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

Source§

impl DepIterator

Source

pub fn end(&self) -> bool

Trait Implementations§

Source§

impl ExternType for DepIterator

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 DepIterator

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.