Skip to main content

PythonSourceFactProvider

Trait PythonSourceFactProvider 

Source
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§

Source

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".

Implementors§