pub trait ProjectContextProvider: Send + Sync {
// Required methods
fn initial(
&self,
workspace: &Path,
home: Option<&Path>,
) -> Result<ProjectContext, ContextError>;
fn scoped(
&self,
workspace: &Path,
targets: &[PathBuf],
delivered: &BTreeSet<PathBuf>,
) -> Result<ProjectContext, ContextError>;
}Required Methods§
fn initial( &self, workspace: &Path, home: Option<&Path>, ) -> Result<ProjectContext, ContextError>
fn scoped( &self, workspace: &Path, targets: &[PathBuf], delivered: &BTreeSet<PathBuf>, ) -> Result<ProjectContext, ContextError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".