Skip to main content

WarmReference

Trait WarmReference 

Source
pub trait WarmReference {
    type Output: Evaluation;

    // Required method
    fn evaluate(
        &mut self,
        candidate: &PixelView<'_>,
        opts: EvalOpts<'_>,
    ) -> MetricResult<Self::Output>;
}
Expand description

Native prepared work. Errors leave it reusable or make later calls refuse; never return stale results after failure.

Required Associated Types§

Source

type Output: Evaluation

Same structured result as the corresponding cold scorer.

Required Methods§

Source

fn evaluate( &mut self, candidate: &PixelView<'_>, opts: EvalOpts<'_>, ) -> MetricResult<Self::Output>

Score with fresh operation-local controls.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<P: WarmReference + ?Sized> WarmReference for Box<P>

Source§

type Output = <P as WarmReference>::Output

Source§

fn evaluate( &mut self, d: &PixelView<'_>, opts: EvalOpts<'_>, ) -> MetricResult<Self::Output>

Implementors§