Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§