Struct jj_lib::repo::RepoLoader
source · pub struct RepoLoader { /* private fields */ }
Implementations§
source§impl RepoLoader
impl RepoLoader
pub fn init( user_settings: &UserSettings, repo_path: &Path, store_factories: &StoreFactories ) -> Result<Self, StoreLoadError>
pub fn repo_path(&self) -> &PathBuf
pub fn store(&self) -> &Arc<Store>
pub fn index_store(&self) -> &Arc<dyn IndexStore>
pub fn op_store(&self) -> &Arc<dyn OpStore>
pub fn op_heads_store(&self) -> &Arc<dyn OpHeadsStore>
pub fn load_at_head( &self, user_settings: &UserSettings ) -> Result<Arc<ReadonlyRepo>, RepoLoaderError>
pub fn load_at( &self, op: &Operation ) -> Result<Arc<ReadonlyRepo>, RepoLoaderError>
pub fn create_from( &self, operation: Operation, view: View, index: Box<dyn ReadonlyIndex> ) -> Arc<ReadonlyRepo>
Trait Implementations§
source§impl Clone for RepoLoader
impl Clone for RepoLoader
source§fn clone(&self) -> RepoLoader
fn clone(&self) -> RepoLoader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for RepoLoader
impl !RefUnwindSafe for RepoLoader
impl Send for RepoLoader
impl Sync for RepoLoader
impl Unpin for RepoLoader
impl !UnwindSafe for RepoLoader
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