Enum pkgcraft::depset::DepRestrict
source · pub enum DepRestrict {
Atom(DepRestrict<Atom>),
String(DepRestrict<String>),
Uri(DepRestrict<Uri>),
}Variants§
Trait Implementations§
source§impl Clone for DepRestrict
impl Clone for DepRestrict
source§fn clone(&self) -> DepRestrict
fn clone(&self) -> DepRestrict
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 DepRestrict
impl Debug for DepRestrict
source§impl Display for DepRestrict
impl Display for DepRestrict
source§impl Hash for DepRestrict
impl Hash for DepRestrict
source§impl Ord for DepRestrict
impl Ord for DepRestrict
source§fn cmp(&self, other: &DepRestrict) -> Ordering
fn cmp(&self, other: &DepRestrict) -> 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<DepRestrict> for DepRestrict
impl PartialEq<DepRestrict> for DepRestrict
source§fn eq(&self, other: &DepRestrict) -> bool
fn eq(&self, other: &DepRestrict) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<DepRestrict> for DepRestrict
impl PartialOrd<DepRestrict> for DepRestrict
source§fn partial_cmp(&self, other: &DepRestrict) -> Option<Ordering>
fn partial_cmp(&self, other: &DepRestrict) -> 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 DepRestrict
impl StructuralEq for DepRestrict
impl StructuralPartialEq for DepRestrict
Auto Trait Implementations§
impl RefUnwindSafe for DepRestrict
impl Send for DepRestrict
impl Sync for DepRestrict
impl Unpin for DepRestrict
impl UnwindSafe for DepRestrict
Blanket Implementations§
§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
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.