Trait Repair

Source
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§

Source

type Error: Error + Send + Sync + 'static

Structured repair failure.

Required Methods§

Source

fn repair( &self, value: &T, plan: &RepairPlan, tolerance: Tolerance, ) -> Result<(T, RepairReport), Self::Error>

Never mutates the caller’s source value in place.

Implementors§