#[non_exhaustive]pub enum DependencyScope {
Runtime,
Dev,
Test,
Build,
Peer,
Optional,
}Expand description
Semantic role of a dependency in its declaring package.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Runtime
Required by the deployed or executed package.
Dev
Used during local development.
Test
Used only while running tests.
Build
Used to compile, generate, or package the project.
Peer
Supplied by a consuming package or host.
Optional
Not required for the package’s default operation.
Trait Implementations§
Source§impl Clone for DependencyScope
impl Clone for DependencyScope
Source§fn clone(&self) -> DependencyScope
fn clone(&self) -> DependencyScope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DependencyScope
Source§impl Debug for DependencyScope
impl Debug for DependencyScope
Source§impl<'de> Deserialize<'de> for DependencyScope
impl<'de> Deserialize<'de> for DependencyScope
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
impl Eq for DependencyScope
Source§impl Hash for DependencyScope
impl Hash for DependencyScope
Source§impl Ord for DependencyScope
impl Ord for DependencyScope
Source§fn cmp(&self, other: &DependencyScope) -> Ordering
fn cmp(&self, other: &DependencyScope) -> Ordering
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
Source§impl PartialEq for DependencyScope
impl PartialEq for DependencyScope
Source§impl PartialOrd for DependencyScope
impl PartialOrd for DependencyScope
Source§impl Serialize for DependencyScope
impl Serialize for DependencyScope
impl StructuralPartialEq for DependencyScope
Auto Trait Implementations§
impl Freeze for DependencyScope
impl RefUnwindSafe for DependencyScope
impl Send for DependencyScope
impl Sync for DependencyScope
impl Unpin for DependencyScope
impl UnsafeUnpin for DependencyScope
impl UnwindSafe for DependencyScope
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.