Enum pkgcraft::dep::spec::DepSpecUnit
source · #[repr(C)]
pub enum DepSpecUnit {
Dep,
String,
Uri,
}Expand description
DepSpec unit variants.
Variants§
Trait Implementations§
source§impl Clone for DepSpecUnit
impl Clone for DepSpecUnit
source§fn clone(&self) -> DepSpecUnit
fn clone(&self) -> DepSpecUnit
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 DepSpecUnit
impl Debug for DepSpecUnit
source§impl Hash for DepSpecUnit
impl Hash for DepSpecUnit
source§impl Ord for DepSpecUnit
impl Ord for DepSpecUnit
source§fn cmp(&self, other: &DepSpecUnit) -> Ordering
fn cmp(&self, other: &DepSpecUnit) -> 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<DepSpecUnit> for DepSpecUnit
impl PartialEq<DepSpecUnit> for DepSpecUnit
source§fn eq(&self, other: &DepSpecUnit) -> bool
fn eq(&self, other: &DepSpecUnit) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<DepSpecUnit> for DepSpecUnit
impl PartialOrd<DepSpecUnit> for DepSpecUnit
source§fn partial_cmp(&self, other: &DepSpecUnit) -> Option<Ordering>
fn partial_cmp(&self, other: &DepSpecUnit) -> 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 DepSpecUnit
impl StructuralEq for DepSpecUnit
impl StructuralPartialEq for DepSpecUnit
Auto Trait Implementations§
impl RefUnwindSafe for DepSpecUnit
impl Send for DepSpecUnit
impl Sync for DepSpecUnit
impl Unpin for DepSpecUnit
impl UnwindSafe for DepSpecUnit
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