Skip to main content

PlanarMetric

Trait PlanarMetric 

Source
pub trait PlanarMetric: Metric {
    // Required method
    fn evaluate_planar(
        &mut self,
        reference: &PlanarView<'_>,
        candidate: &PlanarView<'_>,
        opts: EvalOpts<'_>,
    ) -> MetricResult<Self::Output>;
}
Expand description

Optional native planar input. The packed Metric contract stays usable independently; no implicit conversion or packed replay is supplied.

Required Methods§

Source

fn evaluate_planar( &mut self, reference: &PlanarView<'_>, candidate: &PlanarView<'_>, opts: EvalOpts<'_>, ) -> MetricResult<Self::Output>

Score complete color-described planes, preserving native output.

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: PlanarMetric + ?Sized> PlanarMetric for Box<M>

Source§

fn evaluate_planar( &mut self, r: &PlanarView<'_>, d: &PlanarView<'_>, opts: EvalOpts<'_>, ) -> MetricResult<Self::Output>

Implementors§

Source§

impl<M: PlanarMetric> PlanarMetric for Erased<M>
where M::Output: 'static,