Enum nassun::VersionSpec
source · pub enum VersionSpec {
Tag(String),
Version(Version),
Range(Range),
}Variants§
Trait Implementations§
source§impl Clone for VersionSpec
impl Clone for VersionSpec
source§fn clone(&self) -> VersionSpec
fn clone(&self) -> VersionSpec
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 VersionSpec
impl Debug for VersionSpec
source§impl Display for VersionSpec
impl Display for VersionSpec
source§impl Hash for VersionSpec
impl Hash for VersionSpec
source§impl PartialEq<VersionSpec> for VersionSpec
impl PartialEq<VersionSpec> for VersionSpec
source§fn eq(&self, other: &VersionSpec) -> bool
fn eq(&self, other: &VersionSpec) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for VersionSpec
impl StructuralEq for VersionSpec
impl StructuralPartialEq for VersionSpec
Auto Trait Implementations§
impl RefUnwindSafe for VersionSpec
impl Send for VersionSpec
impl Sync for VersionSpec
impl Unpin for VersionSpec
impl UnwindSafe for VersionSpec
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.