Struct jujutsu_lib::index_store::IndexStore
source · [−]pub struct IndexStore { /* private fields */ }Implementations
sourceimpl IndexStore
impl IndexStore
pub fn init(dir: PathBuf) -> Self
pub fn reinit(&self)
pub fn load(dir: PathBuf) -> IndexStore
pub fn get_index_at_op(
&self,
op: &Operation,
store: &Arc<Store>
) -> Arc<ReadonlyIndex>
pub fn write_index(&self, index: MutableIndex) -> Result<Arc<ReadonlyIndex>>
sourcepub fn associate_file_with_operation(
&self,
index: &ReadonlyIndex,
op_id: &OperationId
) -> Result<()>
pub fn associate_file_with_operation(
&self,
index: &ReadonlyIndex,
op_id: &OperationId
) -> Result<()>
Records a link from the given operation to the this index version.
Auto Trait Implementations
impl RefUnwindSafe for IndexStore
impl Send for IndexStore
impl Sync for IndexStore
impl Unpin for IndexStore
impl UnwindSafe for IndexStore
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more