Struct raur::ArcPackage
source · pub struct ArcPackage(_);
Expand description
A wrapper around raur::Package. Adds the traits necessary to store in a hash set and look them up by pkgname.
Implementations§
source§impl ArcPackage
impl ArcPackage
sourcepub fn new(pkg: Package) -> ArcPackage
pub fn new(pkg: Package) -> ArcPackage
Create a new ArcPackage from a Package
Trait Implementations§
source§impl Borrow<str> for ArcPackage
impl Borrow<str> for ArcPackage
source§impl Clone for ArcPackage
impl Clone for ArcPackage
source§fn clone(&self) -> ArcPackage
fn clone(&self) -> ArcPackage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ArcPackage
impl Debug for ArcPackage
source§impl Default for ArcPackage
impl Default for ArcPackage
source§fn default() -> ArcPackage
fn default() -> ArcPackage
Returns the “default value” for a type. Read more
source§impl Deref for ArcPackage
impl Deref for ArcPackage
source§impl From<Package> for ArcPackage
impl From<Package> for ArcPackage
source§fn from(pkg: Package) -> ArcPackage
fn from(pkg: Package) -> ArcPackage
Converts to this type from the input type.
source§impl Hash for ArcPackage
impl Hash for ArcPackage
source§impl Ord for ArcPackage
impl Ord for ArcPackage
source§impl PartialEq<ArcPackage> for ArcPackage
impl PartialEq<ArcPackage> for ArcPackage
source§impl PartialOrd<ArcPackage> for ArcPackage
impl PartialOrd<ArcPackage> for ArcPackage
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for ArcPackage
Auto Trait Implementations§
impl RefUnwindSafe for ArcPackage
impl Send for ArcPackage
impl Sync for ArcPackage
impl Unpin for ArcPackage
impl UnwindSafe for ArcPackage
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.