#[repr(u8)]pub enum DepKind {
Runtime = 0,
Dev = 1,
Optional = 2,
}Expand description
How a package manifest declares an external dependency.
Variants§
Runtime = 0
A dependency required at runtime in production.
Dev = 1
A dependency used only during development or testing.
Optional = 2
An optional or peer dependency.
Trait Implementations§
impl Copy for DepKind
impl Eq for DepKind
Source§impl Ord for DepKind
impl Ord for DepKind
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for DepKind
impl PartialOrd for DepKind
impl StructuralPartialEq for DepKind
Auto Trait Implementations§
impl Forget for DepKind
impl Freeze for DepKind
impl Move for DepKind
impl RefUnwindSafe for DepKind
impl Send for DepKind
impl Sync for DepKind
impl Unpin for DepKind
impl UnsafeUnpin for DepKind
impl UnwindSafe for DepKind
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