Struct alpm_utils::Targ
source · pub struct Targ<'a> {
pub repo: Option<&'a str>,
pub pkg: &'a str,
}
Expand description
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.
Implementations§
Trait Implementations§
source§impl<'a> Ord for Targ<'a>
impl<'a> Ord for Targ<'a>
source§impl<'a> PartialOrd for Targ<'a>
impl<'a> PartialOrd for Targ<'a>
impl<'a> Copy for Targ<'a>
impl<'a> Eq for Targ<'a>
impl<'a> StructuralPartialEq for Targ<'a>
Auto Trait Implementations§
impl<'a> Freeze for Targ<'a>
impl<'a> RefUnwindSafe for Targ<'a>
impl<'a> Send for Targ<'a>
impl<'a> Sync for Targ<'a>
impl<'a> Unpin for Targ<'a>
impl<'a> UnwindSafe for Targ<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)