pub struct ProjectDetector { /* private fields */ }Expand description
Detects package managers and dependency files in a project
Implementations§
Source§impl ProjectDetector
impl ProjectDetector
pub fn new(project_path: PathBuf) -> Self
Sourcepub fn detect(&self) -> Result<Vec<DetectedFile>>
pub fn detect(&self) -> Result<Vec<DetectedFile>>
Detect all dependency files in the project
Sourcepub fn get_sync_command(&self, pm: &PackageManager) -> &'static str
pub fn get_sync_command(&self, pm: &PackageManager) -> &'static str
Get the sync command to run after updating
Auto Trait Implementations§
impl Freeze for ProjectDetector
impl RefUnwindSafe for ProjectDetector
impl Send for ProjectDetector
impl Sync for ProjectDetector
impl Unpin for ProjectDetector
impl UnwindSafe for ProjectDetector
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