Struct jujutsu_lib::workspace::Workspace
source · [−]pub struct Workspace { /* private fields */ }Expand description
Represents a workspace, i.e. what’s typically the .jj/ directory and its parent.
Implementations
sourceimpl Workspace
impl Workspace
pub fn init_local(
user_settings: &UserSettings,
workspace_root: PathBuf
) -> Result<(Self, Arc<ReadonlyRepo>), WorkspaceInitError>
pub fn init_internal_git(
user_settings: &UserSettings,
workspace_root: PathBuf
) -> Result<(Self, Arc<ReadonlyRepo>), WorkspaceInitError>
pub fn init_external_git(
user_settings: &UserSettings,
workspace_root: PathBuf,
git_repo_path: PathBuf
) -> Result<(Self, Arc<ReadonlyRepo>), WorkspaceInitError>
pub fn init_workspace_with_existing_repo(
user_settings: &UserSettings,
workspace_root: PathBuf,
repo: &Arc<ReadonlyRepo>,
workspace_id: WorkspaceId
) -> Result<(Self, Arc<ReadonlyRepo>), WorkspaceInitError>
pub fn load(
user_settings: &UserSettings,
workspace_path: PathBuf
) -> Result<Self, WorkspaceLoadError>
pub fn workspace_root(&self) -> &PathBuf
pub fn workspace_id(&self) -> WorkspaceId
pub fn repo_path(&self) -> &PathBuf
pub fn repo_loader(&self) -> &RepoLoader
pub fn working_copy(&self) -> &WorkingCopy
pub fn working_copy_mut(&mut self) -> &mut WorkingCopy
Auto Trait Implementations
impl !RefUnwindSafe for Workspace
impl Send for Workspace
impl !Sync for Workspace
impl Unpin for Workspace
impl !UnwindSafe for Workspace
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