[][src]Struct alpm_utils::Targ

pub struct Targ<'a> {
    pub repo: Option<&'a str>,
    pub pkg: &'a str,
}

A packge to find, optionally from a specific repository.

Fields

repo: Option<&'a str>

The repository the package should come from. None for any repository.

pkg: &'a str

The name of the package, may also contain a version constraint.

Methods

impl<'a> Targ<'a>[src]

pub fn new<S: AsRef<str>>(repo: Option<&'a S>, pkg: &'a S) -> Targ<'a>[src]

Create a new Targ.

Trait Implementations

impl<'a> AsTarg for Targ<'a>[src]

impl<'a> Eq for Targ<'a>[src]

impl<'a> Clone for Targ<'a>[src]

impl<'a> PartialOrd<Targ<'a>> for Targ<'a>[src]

impl<'a> Ord for Targ<'a>[src]

impl<'a> PartialEq<Targ<'a>> for Targ<'a>[src]

impl<'a, S: AsRef<str> + ?Sized> From<&'a S> for Targ<'a>[src]

impl<'a> Copy for Targ<'a>[src]

impl<'a> Hash for Targ<'a>[src]

impl<'a> Display for Targ<'a>[src]

impl<'a> Debug for Targ<'a>[src]

Auto Trait Implementations

impl<'a> Unpin for Targ<'a>

impl<'a> Sync for Targ<'a>

impl<'a> Send for Targ<'a>

impl<'a> UnwindSafe for Targ<'a>

impl<'a> RefUnwindSafe for Targ<'a>

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]