pub struct IndexBuilder { /* private fields */ }Implementations§
Source§impl IndexBuilder
impl IndexBuilder
pub fn new() -> Self
pub fn workspace(self, path: impl Into<PathBuf>) -> Self
Sourcepub fn scan_roots(self, roots: Vec<PathBuf>) -> Self
pub fn scan_roots(self, roots: Vec<PathBuf>) -> Self
Additional workspace roots to scan and merge into one catalog (multi-root).
The primary workspace root is always included.
Sourcepub fn effective_scan_roots(
workspace: &Path,
extra_roots: &[PathBuf],
) -> Vec<PathBuf>
pub fn effective_scan_roots( workspace: &Path, extra_roots: &[PathBuf], ) -> Vec<PathBuf>
Roots scanned by Self::build — primary workspace plus any Self::scan_roots.
Sourcepub fn document_overrides(self, overrides: HashMap<PathBuf, String>) -> Self
pub fn document_overrides(self, overrides: HashMap<PathBuf, String>) -> Self
Use in-memory text instead of disk for specific paths (LSP open buffers).
Sourcepub fn disk_cache(self, enabled: bool) -> Self
pub fn disk_cache(self, enabled: bool) -> Self
Enable persistent .strixonomy/cache/ snapshots keyed by content hash.
Sourcepub fn only_paths(self, paths: Vec<PathBuf>) -> Self
pub fn only_paths(self, paths: Vec<PathBuf>) -> Self
Restrict scanning to these paths (e.g. git-tracked files for diff worktree side).
pub fn build(self) -> Result<OntologyCatalog, CatalogError>
Sourcepub fn build_incremental(
self,
previous: &OntologyCatalog,
) -> Result<OntologyCatalog, CatalogError>
pub fn build_incremental( self, previous: &OntologyCatalog, ) -> Result<OntologyCatalog, CatalogError>
Rebuild the catalog reusing unchanged documents from previous when content hashes match.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IndexBuilder
impl RefUnwindSafe for IndexBuilder
impl Send for IndexBuilder
impl Sync for IndexBuilder
impl Unpin for IndexBuilder
impl UnsafeUnpin for IndexBuilder
impl UnwindSafe for IndexBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more