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§
Sourcefn index(
&self,
workspace_root: &Path,
options: &IndexerOptions,
) -> Result<Vec<FileHash>, IndexerError>
fn index( &self, workspace_root: &Path, options: &IndexerOptions, ) -> Result<Vec<FileHash>, IndexerError>
Indexes the given workspace path and returns a list of file hashes.