Struct jj_lib::default_index::DefaultIndexStore
source · pub struct DefaultIndexStore { /* private fields */ }
Implementations§
source§impl DefaultIndexStore
impl DefaultIndexStore
pub fn name() -> &'static str
pub fn init(dir: &Path) -> Result<Self, DefaultIndexStoreInitError>
pub fn load(dir: &Path) -> DefaultIndexStore
pub fn reinit(&self) -> Result<(), DefaultIndexStoreInitError>
sourcepub fn build_index_at_operation(
&self,
operation: &Operation,
store: &Arc<Store>
) -> Result<DefaultReadonlyIndex, DefaultIndexStoreError>
pub fn build_index_at_operation( &self, operation: &Operation, store: &Arc<Store> ) -> Result<DefaultReadonlyIndex, DefaultIndexStoreError>
Rebuilds index for the given operation
.
The index to be built will be calculated from one of the ancestor
operations if exists. Use reinit()
to rebuild index from scratch.
Trait Implementations§
source§impl Debug for DefaultIndexStore
impl Debug for DefaultIndexStore
source§impl IndexStore for DefaultIndexStore
impl IndexStore for DefaultIndexStore
fn as_any(&self) -> &dyn Any
fn name(&self) -> &str
fn get_index_at_op( &self, op: &Operation, store: &Arc<Store> ) -> Result<Box<dyn ReadonlyIndex>, IndexReadError>
fn write_index( &self, index: Box<dyn MutableIndex>, op_id: &OperationId ) -> Result<Box<dyn ReadonlyIndex>, IndexWriteError>
Auto Trait Implementations§
impl RefUnwindSafe for DefaultIndexStore
impl Send for DefaultIndexStore
impl Sync for DefaultIndexStore
impl Unpin for DefaultIndexStore
impl UnwindSafe for DefaultIndexStore
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