pub trait HasWorkspaceRoot: Send + Sync {
// Required method
fn workspace_root(&self) -> &PathBuf;
}Expand description
Trait for contexts that expose a workspace root path.
Required Methods§
fn workspace_root(&self) -> &PathBuf
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".