pub trait PreparePlanarReference: PlanarMetric {
type PlanarPrepared: PlanarWarmReference<Output = Self::Output>;
// Required method
fn warm_planar_reference(
&mut self,
reference: &PlanarView<'_>,
opts: EvalOpts<'_>,
) -> MetricResult<Self::PlanarPrepared>;
}Expand description
Reusable native planar work owned independently of its factory scorer. The preparation input and its Pulse are not retained. Configuration borrows already held by the factory may be carried in the concrete prepared type.
Required Associated Types§
Sourcetype PlanarPrepared: PlanarWarmReference<Output = Self::Output>
type PlanarPrepared: PlanarWarmReference<Output = Self::Output>
Actual owned reference work, suitable for storage in an encoder callback.
Required Methods§
Sourcefn warm_planar_reference(
&mut self,
reference: &PlanarView<'_>,
opts: EvalOpts<'_>,
) -> MetricResult<Self::PlanarPrepared>
fn warm_planar_reference( &mut self, reference: &PlanarView<'_>, opts: EvalOpts<'_>, ) -> MetricResult<Self::PlanarPrepared>
Build native reference work. Subsequent calls use fresh controls.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".