pub trait TypedChecker<T>: Send + Sync {
// Required method
fn check_and_fix_typed(
&self,
ctx: &UserContext,
entity: &mut T,
status: CheckObjectStatus,
location: &ObjectLocation,
results: &mut CheckResults,
);
}Expand description
Typed version of Checker that works with concrete entity types (T)
instead of generic Records.
Implement this trait for per-entity checker logic structs, then wrap
them in TypedEntityChecker so they satisfy the Checker trait
expected by InMemoryCheckerRegistry.
Required Methods§
fn check_and_fix_typed( &self, ctx: &UserContext, entity: &mut T, status: CheckObjectStatus, location: &ObjectLocation, results: &mut CheckResults, )
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".