pub trait ConflictResolver {
// Required method
fn resolve(
&self,
relative_path: &Path,
local_content: &[u8],
profile_content: &[u8],
) -> Result<Resolution>;
}Expand description
Strategy for resolving file conflicts during install/switch operations
Required Methods§
Sourcefn resolve(
&self,
relative_path: &Path,
local_content: &[u8],
profile_content: &[u8],
) -> Result<Resolution>
fn resolve( &self, relative_path: &Path, local_content: &[u8], profile_content: &[u8], ) -> Result<Resolution>
Called when a local file differs from the profile version.
relative_path: path relative to target dir (e.g., “rules/my-rule.md”)
local_content: current content on disk
profile_content: content from the profile being installed
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".