Skip to main content

PreparePlanarReference

Trait PreparePlanarReference 

Source
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§

Source

type PlanarPrepared: PlanarWarmReference<Output = Self::Output>

Actual owned reference work, suitable for storage in an encoder callback.

Required Methods§

Source

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".

Implementations on Foreign Types§

Source§

impl<M: PreparePlanarReference + ?Sized> PreparePlanarReference for Box<M>

Implementors§