pub struct Config {
pub bare_clone_dir: PathBuf,
pub worktree_dir: PathBuf,
}Fields§
§bare_clone_dir: PathBuf§worktree_dir: PathBufImplementations§
Source§impl Config
impl Config
pub fn bare_repo_path(&self, repo: &RepoName) -> PathBuf
pub fn worktree_base_path(&self, repo: &RepoName) -> PathBuf
pub fn worktree_path(&self, repo: &RepoName, branch: &Branch) -> PathBuf
pub fn load(source: &Source) -> Result<Self, Error>
pub fn default_config_path() -> PathBuf
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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