pub struct WorkspaceIndexer { /* private fields */ }Expand description
Indexes a workspace directory into a Database.
Implementations§
Source§impl WorkspaceIndexer
impl WorkspaceIndexer
Sourcepub fn new(db: Database, workspace: impl Into<PathBuf>) -> Self
pub fn new(db: Database, workspace: impl Into<PathBuf>) -> Self
Create an indexer for workspace writing into db.
Sourcepub fn into_database(self) -> Database
pub fn into_database(self) -> Database
Consume the indexer and return the database.
Sourcepub fn index_workspace(&self) -> Result<SyncStats>
pub fn index_workspace(&self) -> Result<SyncStats>
Index all supported files under the workspace and bake the mmap cache.
Sourcepub fn compile_mmap(&self, output_path: &Path) -> Result<()>
pub fn compile_mmap(&self, output_path: &Path) -> Result<()>
Bake current database into zero-copy CSR mmap (atomic replace).
Auto Trait Implementations§
impl !Freeze for WorkspaceIndexer
impl !RefUnwindSafe for WorkspaceIndexer
impl !Sync for WorkspaceIndexer
impl !UnwindSafe for WorkspaceIndexer
impl Send for WorkspaceIndexer
impl Unpin for WorkspaceIndexer
impl UnsafeUnpin for WorkspaceIndexer
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