Trait alpm_utils::DbListExt

source ·
pub trait DbListExt<'a> {
    // Required methods
    fn find_target_satisfier<T: AsTarg>(&self, target: T) -> Option<&'a Package>;
    fn find_target<T: AsTarg>(&self, target: T) -> Result<&'a Package>;
    fn pkg<S: Into<Vec<u8>>>(&self, pkg: S) -> Result<&'a Package>;
}
Expand description

Extention for AlpmList

Required Methods§

source

fn find_target_satisfier<T: AsTarg>(&self, target: T) -> Option<&'a Package>

Similar to find_satisfier() but expects a Target instead of a &str.

source

fn find_target<T: AsTarg>(&self, target: T) -> Result<&'a Package>

Similar to pkg() but expects a Target instead of a &str.

source

fn pkg<S: Into<Vec<u8>>>(&self, pkg: S) -> Result<&'a Package>

The same as pkg() on Db but will try each Db in order return the first match.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a> DbListExt<'a> for AlpmList<'_, &'a Db>

source§

fn find_target_satisfier<T: AsTarg>(&self, target: T) -> Option<&'a Package>

source§

fn find_target<T: AsTarg>(&self, target: T) -> Result<&'a Package>

source§

fn pkg<S: Into<Vec<u8>>>(&self, pkg: S) -> Result<&'a Package>

source§

impl<'a> DbListExt<'a> for AlpmListMut<&'a Db>

source§

fn find_target_satisfier<T: AsTarg>(&self, target: T) -> Option<&'a Package>

source§

fn find_target<T: AsTarg>(&self, target: T) -> Result<&'a Package>

source§

fn pkg<S: Into<Vec<u8>>>(&self, pkg: S) -> Result<&'a Package>

Implementors§