pub trait PythonSourceFactProvider: Send + Sync {
// Required method
fn python_source_facts(
&self,
token: QueryToken<'_>,
file: &ProjectFile,
keep_going: &dyn Fn() -> bool,
) -> Option<Arc<PythonFileSourceFacts>>;
}Required Methods§
Sourcefn python_source_facts(
&self,
token: QueryToken<'_>,
file: &ProjectFile,
keep_going: &dyn Fn() -> bool,
) -> Option<Arc<PythonFileSourceFacts>>
fn python_source_facts( &self, token: QueryToken<'_>, file: &ProjectFile, keep_going: &dyn Fn() -> bool, ) -> Option<Arc<PythonFileSourceFacts>>
Missing publication is unavailable; a published empty file returns Some.
keep_going is the caller’s admission and traversal continuation check.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".