pub trait Repair<T>:
Debug
+ Send
+ Sync {
type Error: Error + Send + Sync + 'static;
// Required method
fn repair(
&self,
value: &T,
plan: &RepairPlan,
tolerance: Tolerance,
) -> Result<(T, RepairReport), Self::Error>;
}Expand description
Apply one explicit repair plan and return new geometry plus audit report.
Required Associated Types§
Required Methods§
Sourcefn repair(
&self,
value: &T,
plan: &RepairPlan,
tolerance: Tolerance,
) -> Result<(T, RepairReport), Self::Error>
fn repair( &self, value: &T, plan: &RepairPlan, tolerance: Tolerance, ) -> Result<(T, RepairReport), Self::Error>
Never mutates the caller’s source value in place.