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§
Sourcefn common_dir(&self) -> Result<PathBuf, EngineError>
fn common_dir(&self) -> Result<PathBuf, EngineError>
The shared git directory, absolutised (worktree-safe).
fn work_root(&self) -> &Path
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".