pub enum DependencyKind {
Normal,
Development,
Build,
}
Expand description
A descriptor for the kind of dependency.
Cargo dependencies may be one of three kinds.
Variants§
Normal
Normal dependencies.
These are specified in the [dependencies]
section.
Development
Dependencies used for development only.
These are specified in the [dev-dependencies]
section, and are used for tests,
benchmarks and similar.
Build
Dependencies used for build scripts.
These are specified in the [build-dependencies]
section.
Implementations§
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 Display for DependencyKind
impl Display for DependencyKind
Source§impl Hash for DependencyKind
impl Hash for DependencyKind
Source§impl PartialEq for DependencyKind
impl PartialEq for DependencyKind
impl Copy for DependencyKind
impl Eq for DependencyKind
impl StructuralPartialEq for DependencyKind
Auto Trait Implementations§
impl Freeze for DependencyKind
impl RefUnwindSafe for DependencyKind
impl Send for DependencyKind
impl Sync for DependencyKind
impl Unpin for DependencyKind
impl UnwindSafe for DependencyKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.