#[non_exhaustive]#[repr(u32)]pub enum ResolveVersion {
V1 = 1,
V2 = 2,
V3 = 3,
V4 = 4,
}
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 = 1
Original Cargo.lock
format which places checksums in the
[[metadata]]
table.
V2 = 2
Revised Cargo.lock
format which is optimized to prevent merge
conflicts.
For more information, see: https://github.com/rust-lang/cargo/pull/7070
V3 = 3
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
V4 = 4
SourceId URL serialization is aware of URL encoding.
For more information, see: https://github.com/rust-lang/cargo/pull/12852
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 for ResolveVersion
impl PartialEq for ResolveVersion
Source§impl PartialOrd for ResolveVersion
impl PartialOrd for ResolveVersion
Source§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 StructuralPartialEq for ResolveVersion
Auto Trait Implementations§
impl Freeze for ResolveVersion
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.