[−][src]Struct rustsec::lockfile::Lockfile
Parsed Cargo.lock file containing dependencies
Fields
packages: Vec<Package>
Dependencies enumerated in the lockfile
metadata: BTreeMap<Checksum, Hash>
Package metadata
Methods
impl Lockfile
[src]
pub fn load<P>(path: P) -> Result<Lockfile, Error> where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
Load lock data from a Cargo.lock
file
pub fn dependencies(&self, package: &Package) -> Vec<&Package>
[src]
Find dependencies for the given package
Trait Implementations
impl<'de> Deserialize<'de> for Lockfile
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<Lockfile, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Lockfile, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl FromStr for Lockfile
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(toml_string: &str) -> Result<Lockfile, Error>
[src]
impl Eq for Lockfile
[src]
impl Clone for Lockfile
[src]
impl Debug for Lockfile
[src]
impl PartialEq<Lockfile> for Lockfile
[src]
Auto Trait Implementations
impl Send for Lockfile
impl Unpin for Lockfile
impl Sync for Lockfile
impl UnwindSafe for Lockfile
impl RefUnwindSafe for Lockfile
Blanket Implementations
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, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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,