Enum cargo_lock::package::SourceKind
source · #[non_exhaustive]
pub enum SourceKind {
Git(GitReference),
Path,
Registry,
SparseRegistry,
LocalRegistry,
Directory,
}
Expand description
The possible kinds of code source.
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.
Git(GitReference)
A git repository.
Path
A local path..
Registry
A remote registry.
SparseRegistry
A sparse registry.
LocalRegistry
A local filesystem-based registry.
Directory
A directory-based registry.
Trait Implementations§
source§impl Clone for SourceKind
impl Clone for SourceKind
source§fn clone(&self) -> SourceKind
fn clone(&self) -> SourceKind
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 SourceKind
impl Debug for SourceKind
source§impl Hash for SourceKind
impl Hash for SourceKind
source§impl Ord for SourceKind
impl Ord for SourceKind
source§fn cmp(&self, other: &SourceKind) -> Ordering
fn cmp(&self, other: &SourceKind) -> 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<SourceKind> for SourceKind
impl PartialEq<SourceKind> for SourceKind
source§fn eq(&self, other: &SourceKind) -> bool
fn eq(&self, other: &SourceKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SourceKind> for SourceKind
impl PartialOrd<SourceKind> for SourceKind
source§fn partial_cmp(&self, other: &SourceKind) -> Option<Ordering>
fn partial_cmp(&self, other: &SourceKind) -> 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 moreimpl Eq for SourceKind
impl StructuralEq for SourceKind
impl StructuralPartialEq for SourceKind
Auto Trait Implementations§
impl RefUnwindSafe for SourceKind
impl Send for SourceKind
impl Sync for SourceKind
impl Unpin for SourceKind
impl UnwindSafe for SourceKind
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<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.