Skip to main content

DynPreparePlanarReference

Trait DynPreparePlanarReference 

Source
pub trait DynPreparePlanarReference: PlanarMetric<Output = ErasedEvaluation> {
    // Required method
    fn prepare_planar(
        &mut self,
        reference: &PlanarView<'_>,
        opts: EvalOpts<'_>,
    ) -> MetricResult<Box<dyn PlanarWarmReference<Output = ErasedEvaluation> + '_>>;
}
Expand description

Object-safe owned planar preparation for heterogeneous metric collections. The returned object retains checked geometry and interpretation. Native prepared state can still lend its map without boxing an assessment.

Required Methods§

Source

fn prepare_planar( &mut self, reference: &PlanarView<'_>, opts: EvalOpts<'_>, ) -> MetricResult<Box<dyn PlanarWarmReference<Output = ErasedEvaluation> + '_>>

Prepare actual owned native work, with fresh per-candidate controls.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§