Skip to main content

SemanticIndex

Trait SemanticIndex 

Source
pub trait SemanticIndex {
    type Error: Error + Send + Sync + 'static;

    // Required method
    fn analyze(
        &self,
        workspace: &Path,
        builder: &mut GraphBuilder,
    ) -> Result<(), Self::Error>;
}
Expand description

Pluggable semantic backend. The single permitted entry point through which a name-resolving analyzer (e.g. code-split-sema backed by ra_ap_*) contributes nodes and edges to a GraphBuilder.

Required Associated Types§

Source

type Error: Error + Send + Sync + 'static

Required Methods§

Source

fn analyze( &self, workspace: &Path, builder: &mut GraphBuilder, ) -> Result<(), Self::Error>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§