Trait alpm_utils::DbListExt

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

Extention for AlpmList

Required Methods§

source

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

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

source

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

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

source

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

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<'a>>

source§

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

source§

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

source§

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

Implementors§