#[non_exhaustive]pub enum RegistryKind {
CratesIo,
Npm,
Jsr,
PubDev,
Pypi,
GoProxy,
}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.
Implementations§
Trait Implementations§
Source§impl Clone for RegistryKind
impl Clone for RegistryKind
Source§fn clone(&self) -> RegistryKind
fn clone(&self) -> RegistryKind
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 moreSource§impl Debug for RegistryKind
impl Debug for RegistryKind
Source§impl<'de> Deserialize<'de> for RegistryKind
impl<'de> Deserialize<'de> for RegistryKind
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 Display for RegistryKind
impl Display for RegistryKind
Source§impl Ord for RegistryKind
impl Ord for RegistryKind
Source§fn cmp(&self, other: &RegistryKind) -> Ordering
fn cmp(&self, other: &RegistryKind) -> 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 RegistryKind
impl PartialEq for RegistryKind
Source§fn eq(&self, other: &RegistryKind) -> bool
fn eq(&self, other: &RegistryKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for RegistryKind
impl PartialOrd for RegistryKind
Source§impl Serialize for RegistryKind
impl Serialize for RegistryKind
impl Copy for RegistryKind
impl Eq for RegistryKind
impl StructuralPartialEq for RegistryKind
Auto Trait Implementations§
impl Freeze for RegistryKind
impl RefUnwindSafe for RegistryKind
impl Send for RegistryKind
impl Sync for RegistryKind
impl Unpin for RegistryKind
impl UnsafeUnpin for RegistryKind
impl UnwindSafe for RegistryKind
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