pub struct PythonProjectFinder { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Debug for PythonProjectFinder
impl Debug for PythonProjectFinder
Source§impl Default for PythonProjectFinder
impl Default for PythonProjectFinder
Source§fn default() -> PythonProjectFinder
fn default() -> PythonProjectFinder
Returns the “default value” for a type. Read more
Source§impl ProjectFinder for PythonProjectFinder
impl ProjectFinder for PythonProjectFinder
fn projects(&self) -> Vec<&Project>
fn projects_mut(&mut self) -> Vec<&mut Project>
Source§fn project_count(&self) -> usize
fn project_count(&self) -> usize
Number of projects held by this finder. Read more
Source§fn extend_projects<'a>(&'a self, out: &mut Vec<&'a Project>)
fn extend_projects<'a>(&'a self, out: &mut Vec<&'a Project>)
Append every project held by this finder onto
out. Read moreSource§fn extend_projects_mut<'a>(&'a mut self, out: &mut Vec<&'a mut Project>)
fn extend_projects_mut<'a>(&'a mut self, out: &mut Vec<&'a mut Project>)
Mutable counterpart of
ProjectFinder::extend_projects: append every
project held by this finder onto out as &mut Project. Read moreSource§fn contains_project(&self, path: &Path) -> bool
fn contains_project(&self, path: &Path) -> bool
Whether a project keyed by exactly
path has already been discovered
by this finder. Read moreSource§fn project_files(&self) -> &[&str]
fn project_files(&self) -> &[&str]
The manifest patterns this finder claims, in one of TWO forms. Read more
Source§fn visit<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
path: &'life1 Path,
relative_path: &'life2 Path,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn visit<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
path: &'life1 Path,
relative_path: &'life2 Path,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Errors Read more
Source§fn should_visit_manifest<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: Sync + 'async_trait,
fn should_visit_manifest<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: Sync + 'async_trait,
Source§fn matches_project_file<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: Sync + 'async_trait,
fn matches_project_file<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: Sync + 'async_trait,
Whether
path is a project manifest file recognized by this finder. Read moreSource§fn dependency_reference_manifests(&self) -> Vec<PathBuf>
fn dependency_reference_manifests(&self) -> Vec<PathBuf>
Manifests this finder knows about that carry version references to
discovered packages, but are NOT themselves managed projects. Read more
Source§fn sync_dependency_references<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_packages: &'life1 [&'life2 dyn Package],
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: Sync + 'async_trait,
fn sync_dependency_references<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_packages: &'life1 [&'life2 dyn Package],
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: Sync + 'async_trait,
Retarget the version references inside
ProjectFinder::dependency_reference_manifests at the bumped
packages. Read moreSource§fn finalize<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: Send + 'async_trait,
fn finalize<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: Send + 'async_trait,
Post-visit processing hook for resolving deferred state (e.g., workspace-inherited versions).
Called once after all
visit() calls complete. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for PythonProjectFinder
impl !UnwindSafe for PythonProjectFinder
impl Freeze for PythonProjectFinder
impl Send for PythonProjectFinder
impl Sync for PythonProjectFinder
impl Unpin for PythonProjectFinder
impl UnsafeUnpin for PythonProjectFinder
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