pub trait Scorer: Send + Sync {
// Required methods
fn descriptor(&self) -> &ScorerDescriptor;
fn score(&self, case: &CaseView, proposal: &ProposalView) -> ScoreOutcome;
}Expand description
A scorer the host composes in code (3.6, D-06).
Required Methods§
fn descriptor(&self) -> &ScorerDescriptor
fn score(&self, case: &CaseView, proposal: &ProposalView) -> ScoreOutcome
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".