pub trait PrepareReference: Metric {
type Prepared<'a>: WarmReference<Output = Self::Output>
where Self: 'a;
// Required method
fn warm_reference(
&mut self,
reference: &PixelView<'_>,
opts: EvalOpts<'_>,
) -> MetricResult<Self::Prepared<'_>>;
}Expand description
Optional actual reference precomputation, never implicit cold replay.
Required Associated Types§
Sourcetype Prepared<'a>: WarmReference<Output = Self::Output>
where
Self: 'a
type Prepared<'a>: WarmReference<Output = Self::Output> where Self: 'a
Retained work may borrow the scorer, but not the input or preparation pulse. Each subsequent evaluation receives fresh controls.
Required Methods§
Sourcefn warm_reference(
&mut self,
reference: &PixelView<'_>,
opts: EvalOpts<'_>,
) -> MetricResult<Self::Prepared<'_>>
fn warm_reference( &mut self, reference: &PixelView<'_>, opts: EvalOpts<'_>, ) -> MetricResult<Self::Prepared<'_>>
Prepare work preserving cold-result scalar bits.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".