Enum cargo_lock::ResolveVersion
source · #[non_exhaustive]
#[repr(u32)]
pub enum ResolveVersion {
V1,
V2,
V3,
}
Expand description
Lockfile versions
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.
V1
Original Cargo.lock
format which places checksums in the
[[metadata]]
table.
V2
Revised Cargo.lock
format which is optimized to prevent merge
conflicts.
For more information, see: https://github.com/rust-lang/cargo/pull/7070
V3
Encodes Git dependencies with branch = 'master'
in the manifest as
?branch=master
in their URLs.
For more information, see: https://internals.rust-lang.org/t/upcoming-changes-to-cargo-lock/14017
Trait Implementations§
source§impl Clone for ResolveVersion
impl Clone for ResolveVersion
source§fn clone(&self) -> ResolveVersion
fn clone(&self) -> ResolveVersion
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 ResolveVersion
impl Debug for ResolveVersion
source§impl Default for ResolveVersion
impl Default for ResolveVersion
V3 format is now the default.
source§impl<'de> Deserialize<'de> for ResolveVersion
impl<'de> Deserialize<'de> for ResolveVersion
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 From<ResolveVersion> for u32
impl From<ResolveVersion> for u32
source§fn from(version: ResolveVersion) -> u32
fn from(version: ResolveVersion) -> u32
Converts to this type from the input type.
source§impl FromStr for ResolveVersion
impl FromStr for ResolveVersion
source§impl Hash for ResolveVersion
impl Hash for ResolveVersion
source§impl Ord for ResolveVersion
impl Ord for ResolveVersion
source§fn cmp(&self, other: &ResolveVersion) -> Ordering
fn cmp(&self, other: &ResolveVersion) -> 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<ResolveVersion> for ResolveVersion
impl PartialEq<ResolveVersion> for ResolveVersion
source§fn eq(&self, other: &ResolveVersion) -> bool
fn eq(&self, other: &ResolveVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ResolveVersion> for ResolveVersion
impl PartialOrd<ResolveVersion> for ResolveVersion
source§fn partial_cmp(&self, other: &ResolveVersion) -> Option<Ordering>
fn partial_cmp(&self, other: &ResolveVersion) -> 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 moresource§impl Serialize for ResolveVersion
impl Serialize for ResolveVersion
source§impl TryFrom<u32> for ResolveVersion
impl TryFrom<u32> for ResolveVersion
impl Copy for ResolveVersion
impl Eq for ResolveVersion
impl StructuralEq for ResolveVersion
impl StructuralPartialEq for ResolveVersion
Auto Trait Implementations§
impl RefUnwindSafe for ResolveVersion
impl Send for ResolveVersion
impl Sync for ResolveVersion
impl Unpin for ResolveVersion
impl UnwindSafe for ResolveVersion
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.