pub struct LockCollector { /* private fields */ }Implementations§
Source§impl LockCollector
impl LockCollector
pub fn new() -> Self
pub fn insert_root_fields( &mut self, name: &str, version: &str, dependencies: &HashMap<String, String>, dev_dependencies: &HashMap<String, String>, optional_dependencies: &HashMap<String, String>, peer_dependencies: &HashMap<String, String>, )
pub fn insert_package( &mut self, project_root: &Path, package_dir: &Path, name: &str, version: &str, resolved: &str, integrity: Option<&str>, dependencies: &HashMap<String, String>, optional_dependencies: &HashMap<String, String>, peer_dependencies: &HashMap<String, String>, ) -> Result<()>
pub fn into_lockfile_fields(self, name: &str, version: &str) -> LockFile
Trait Implementations§
Source§impl Debug for LockCollector
impl Debug for LockCollector
Source§impl Default for LockCollector
impl Default for LockCollector
Source§fn default() -> LockCollector
fn default() -> LockCollector
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LockCollector
impl RefUnwindSafe for LockCollector
impl Send for LockCollector
impl Sync for LockCollector
impl Unpin for LockCollector
impl UnsafeUnpin for LockCollector
impl UnwindSafe for LockCollector
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
Source§impl<T> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more