[−][src]Struct cargo_lock::lockfile::Lockfile
Parsed Cargo.lock file containing dependencies
Fields
packages: Vec<Package>
Dependencies enumerated in the lockfile
metadata: Metadata
Package metadata
Methods
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 ToString for Lockfile
[src]
impl Eq for Lockfile
[src]
impl Clone for Lockfile
[src]
impl PartialEq<Lockfile> for Lockfile
[src]
impl Debug 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 Serialize for Lockfile
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Lockfile
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for Lockfile
impl Unpin for Lockfile
impl Sync for Lockfile
impl RefUnwindSafe for Lockfile
impl UnwindSafe for Lockfile
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for 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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: 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,