Skip to main content

RepoLayout

Trait RepoLayout 

Source
pub trait RepoLayout {
    // Required methods
    fn common_dir(&self) -> Result<PathBuf, EngineError>;
    fn work_root(&self) -> &Path;
}
Expand description

Where this repository’s differential state lives. Path policy is domain (plan::grouping_cache_dir, plan::review_dir); this only says where the repository keeps its shared git directory.

Required Methods§

Source

fn common_dir(&self) -> Result<PathBuf, EngineError>

The shared git directory, absolutised (worktree-safe).

Source

fn work_root(&self) -> &Path

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§