pub struct LockfileParser;Expand description
Parser for various lock files to get installed versions
Implementations§
Source§impl LockfileParser
impl LockfileParser
pub fn new() -> Self
Sourcepub fn parse(&self, path: &PathBuf) -> Result<HashMap<String, Version>>
pub fn parse(&self, path: &PathBuf) -> Result<HashMap<String, Version>>
Parse a lock file and return a map of package name -> installed version
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LockfileParser
impl RefUnwindSafe for LockfileParser
impl Send for LockfileParser
impl Sync for LockfileParser
impl Unpin for LockfileParser
impl UnwindSafe for LockfileParser
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