pub enum DependencyKind {
Normal,
Dev,
Build,
}
Expand description
Section in which a dependency was defined in.
Variants§
Normal
Used for production builds.
Dev
Used only for tests and examples.
Build
Used in build scripts.
Trait Implementations§
source§impl Clone for DependencyKind
impl Clone for DependencyKind
source§fn clone(&self) -> DependencyKind
fn clone(&self) -> DependencyKind
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 DependencyKind
impl Debug for DependencyKind
source§impl<'de> Deserialize<'de> for DependencyKind
impl<'de> Deserialize<'de> for DependencyKind
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for DependencyKind
impl Hash for DependencyKind
source§impl Ord for DependencyKind
impl Ord for DependencyKind
source§fn cmp(&self, other: &DependencyKind) -> Ordering
fn cmp(&self, other: &DependencyKind) -> 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<DependencyKind> for DependencyKind
impl PartialEq<DependencyKind> for DependencyKind
source§fn eq(&self, other: &DependencyKind) -> bool
fn eq(&self, other: &DependencyKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<DependencyKind> for DependencyKind
impl PartialOrd<DependencyKind> for DependencyKind
source§fn partial_cmp(&self, other: &DependencyKind) -> Option<Ordering>
fn partial_cmp(&self, other: &DependencyKind) -> 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 more