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