Skip to main content

Indexer

Trait Indexer 

Source
pub trait Indexer {
    // Required method
    fn index(
        &self,
        workspace_root: &Path,
        options: &IndexerOptions,
    ) -> Result<Vec<FileHash>, IndexerError>;
}
Expand description

The core indexer trait.

Required Methods§

Source

fn index( &self, workspace_root: &Path, options: &IndexerOptions, ) -> Result<Vec<FileHash>, IndexerError>

Indexes the given workspace path and returns a list of file hashes.

Implementors§