Enum cargo_lock::lockfile::version::ResolveVersion [−][src]
#[non_exhaustive]
#[repr(u32)]
pub enum ResolveVersion {
V1,
V2,
V3,
}Expand description
Lockfile versions
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Original Cargo.lock format which places checksums in the
[[metadata]] table.
Revised Cargo.lock format which is optimized to prevent merge
conflicts.
For more information, see: https://github.com/rust-lang/cargo/pull/7070
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
impl Clone for ResolveVersion[src]
impl Clone for ResolveVersion[src]fn clone(&self) -> ResolveVersion[src]
fn clone(&self) -> ResolveVersion[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for ResolveVersion[src]
impl Debug for ResolveVersion[src]impl Default for ResolveVersion[src]
impl Default for ResolveVersion[src]V2 format is now the default.
impl<'de> Deserialize<'de> for ResolveVersion[src]
impl<'de> Deserialize<'de> for ResolveVersion[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]Deserialize this value from the given Serde deserializer. Read more
impl FromStr for ResolveVersion[src]
impl FromStr for ResolveVersion[src]impl Hash for ResolveVersion[src]
impl Hash for ResolveVersion[src]impl Ord for ResolveVersion[src]
impl Ord for ResolveVersion[src]impl PartialEq<ResolveVersion> for ResolveVersion[src]
impl PartialEq<ResolveVersion> for ResolveVersion[src]impl PartialOrd<ResolveVersion> for ResolveVersion[src]
impl PartialOrd<ResolveVersion> for ResolveVersion[src]fn partial_cmp(&self, other: &ResolveVersion) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &ResolveVersion) -> Option<Ordering>[src]This method returns an ordering between self and other values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Serialize for ResolveVersion[src]
impl Serialize for ResolveVersion[src]impl TryFrom<u32> for ResolveVersion[src]
impl TryFrom<u32> for ResolveVersion[src]impl Copy for ResolveVersion[src]
impl Eq for ResolveVersion[src]
impl StructuralEq for ResolveVersion[src]
impl StructuralPartialEq for ResolveVersion[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]pub fn equivalent(&self, key: &K) -> bool[src]
pub fn equivalent(&self, key: &K) -> bool[src]Compare self to key and return true if they are equal.
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<N> NodeTrait for N where
N: Copy + Ord + Hash, [src]
N: Copy + Ord + Hash,