[−][src]Struct cargo_lock::lockfile::Lockfile
Parsed Cargo.lock file containing dependencies
Fields
version: ResolveVersion
Version of the Lockfile
packages: Vec<Package>
Dependencies enumerated in the lockfile
root: Option<Package>
Legacy "root" dependency for backwards compatibility
metadata: Metadata
Package metadata
patch: Patch
Patches
Implementations
impl Lockfile
[src]
pub fn load(path: impl AsRef<Path>) -> Result<Self, Error>
[src]
Load lock data from a Cargo.lock
file
pub fn dependency_tree(&self) -> Result<Tree, Error>
[src]
Get the dependency tree for this Lockfile
. Returns an error if the
contents of this lockfile aren't well structured.
The dependency-tree
Cargo feature must be enabled to use this.
Trait Implementations
impl Clone for Lockfile
[src]
impl Debug for Lockfile
[src]
impl<'de> Deserialize<'de> for Lockfile
[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]
impl Eq for Lockfile
[src]
impl FromStr for Lockfile
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(toml_string: &str) -> Result<Self, Error>
[src]
impl PartialEq<Lockfile> for Lockfile
[src]
impl Serialize for Lockfile
[src]
impl StructuralEq for Lockfile
[src]
impl StructuralPartialEq for Lockfile
[src]
impl ToString for Lockfile
[src]
Auto Trait Implementations
impl RefUnwindSafe for Lockfile
[src]
impl Send for Lockfile
[src]
impl Sync for Lockfile
[src]
impl Unpin for Lockfile
[src]
impl UnwindSafe for Lockfile
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,