pub struct RepoLayout { /* private fields */ }Implementations§
Source§impl RepoLayout
impl RepoLayout
pub fn new(root: &Path) -> Self
pub fn root(&self) -> &Path
pub fn claw_dir(&self) -> PathBuf
pub fn objects_dir(&self) -> PathBuf
pub fn refs_dir(&self) -> PathBuf
pub fn config_file(&self) -> PathBuf
pub fn index_file(&self) -> PathBuf
pub fn packs_dir(&self) -> PathBuf
pub fn indices_dir(&self) -> PathBuf
pub fn cache_dir(&self) -> PathBuf
pub fn head_file(&self) -> PathBuf
pub fn reflogs_dir(&self) -> PathBuf
pub fn create_dirs(&self) -> Result<(), StoreError>
Trait Implementations§
Source§impl Clone for RepoLayout
impl Clone for RepoLayout
Source§fn clone(&self) -> RepoLayout
fn clone(&self) -> RepoLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RepoLayout
impl RefUnwindSafe for RepoLayout
impl Send for RepoLayout
impl Sync for RepoLayout
impl Unpin for RepoLayout
impl UnsafeUnpin for RepoLayout
impl UnwindSafe for RepoLayout
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