Enum pkgcraft::dep::spec::DepSpecWrapper
source · pub enum DepSpecWrapper {
Dep(DepSpec<Dep>),
String(DepSpec<String>),
Uri(DepSpec<Uri>),
}Expand description
Opaque wrapper for pkgcraft::dep::DepSpec.
Variants§
Trait Implementations§
source§impl Clone for DepSpecWrapper
impl Clone for DepSpecWrapper
source§fn clone(&self) -> DepSpecWrapper
fn clone(&self) -> DepSpecWrapper
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 DepSpecWrapper
impl Debug for DepSpecWrapper
source§impl Display for DepSpecWrapper
impl Display for DepSpecWrapper
source§impl Hash for DepSpecWrapper
impl Hash for DepSpecWrapper
source§impl Ord for DepSpecWrapper
impl Ord for DepSpecWrapper
source§fn cmp(&self, other: &DepSpecWrapper) -> Ordering
fn cmp(&self, other: &DepSpecWrapper) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<DepSpecWrapper> for DepSpecWrapper
impl PartialEq<DepSpecWrapper> for DepSpecWrapper
source§fn eq(&self, other: &DepSpecWrapper) -> bool
fn eq(&self, other: &DepSpecWrapper) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<DepSpecWrapper> for DepSpecWrapper
impl PartialOrd<DepSpecWrapper> for DepSpecWrapper
source§fn partial_cmp(&self, other: &DepSpecWrapper) -> Option<Ordering>
fn partial_cmp(&self, other: &DepSpecWrapper) -> Option<Ordering>
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 DepSpecWrapper
impl StructuralEq for DepSpecWrapper
impl StructuralPartialEq for DepSpecWrapper
Auto Trait Implementations§
impl RefUnwindSafe for DepSpecWrapper
impl Send for DepSpecWrapper
impl Sync for DepSpecWrapper
impl Unpin for DepSpecWrapper
impl UnwindSafe for DepSpecWrapper
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.§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more