Skip to main content

CodeIndexPort

Trait CodeIndexPort 

Source
pub trait CodeIndexPort {
    // Required methods
    fn build_index(
        &mut self,
        catalog: &SourceCatalog,
    ) -> WorkspaceResult<CodeIndex>;
    fn refresh_paths(
        &mut self,
        current: &CodeIndex,
        paths: &[PathBuf],
    ) -> WorkspaceResult<CodeIndexRefresh>;
    fn refresh_catalog_paths(
        &mut self,
        current: &CodeIndex,
        catalog: &SourceCatalog,
        paths: &[PathBuf],
    ) -> WorkspaceResult<CodeIndexRefresh>;
}

Required Methods§

Source

fn build_index(&mut self, catalog: &SourceCatalog) -> WorkspaceResult<CodeIndex>

Source

fn refresh_paths( &mut self, current: &CodeIndex, paths: &[PathBuf], ) -> WorkspaceResult<CodeIndexRefresh>

Source

fn refresh_catalog_paths( &mut self, current: &CodeIndex, catalog: &SourceCatalog, paths: &[PathBuf], ) -> WorkspaceResult<CodeIndexRefresh>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§