pub struct LockfileReader {
pub file: &'static str,
pub exact: bool,
pub read: fn(&str, &Path) -> Option<LockfileHit>,
}Expand description
Per-format reader: probes a single lockfile/manifest and returns None when
the file is missing or the package is absent.
Fields§
§file: &'static strFilename inspected, relative to project_dir.
exact: boolWhether hits are exact pins.
read: fn(&str, &Path) -> Option<LockfileHit>Reader fn: (name, project_dir) -> Option<LockfileHit>.
Auto Trait Implementations§
impl Forget for LockfileReader
impl Freeze for LockfileReader
impl Move for LockfileReader
impl RefUnwindSafe for LockfileReader
impl Send for LockfileReader
impl Sync for LockfileReader
impl Unpin for LockfileReader
impl UnsafeUnpin for LockfileReader
impl UnwindSafe for LockfileReader
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