pub trait RuntimeCandidateMetric<S>: Send + Sync {
// Required method
fn measure(&self, solution: &S, candidate: &CandidateTraceIdentity) -> f64;
}Expand description
Host-owned numeric metadata for one already-generated move.
The compiled selector invokes this only for sorted or probabilistic
order. The callback sees the same canonical logical identity used by the
candidate trace, so native and host-language models rank identical move
coordinates without rebuilding or executing a second selector.
Required Methods§
fn measure(&self, solution: &S, candidate: &CandidateTraceIdentity) -> f64
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".