Skip to main content

EvalMetricRegistration

Trait EvalMetricRegistration 

pub trait EvalMetricRegistration<EC>: Sized{
    // Required method
    fn register(self, builder: EvaluatorBuilder<EC>) -> EvaluatorBuilder<EC>;
}
Expand description

Trait to fake variadic generics.

Required Methods§

fn register(self, builder: EvaluatorBuilder<EC>) -> EvaluatorBuilder<EC>

Register the metrics.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

§

impl<M1, EC> EvalMetricRegistration<EC> for (M1,)

§

fn register(self, builder: EvaluatorBuilder<EC>) -> EvaluatorBuilder<EC>

§

impl<M1, M2, EC> EvalMetricRegistration<EC> for (M1, M2)
where EC: EvaluatorComponentTypes, <<EC as EvaluatorComponentTypes>::Model as InferenceStep>::Output: Adaptor<<M1 as Metric>::Input> + Adaptor<<M2 as Metric>::Input>, M1: Metric + Numeric + 'static, M2: Metric + Numeric + 'static,

§

fn register(self, builder: EvaluatorBuilder<EC>) -> EvaluatorBuilder<EC>

§

impl<M1, M2, M3, EC> EvalMetricRegistration<EC> for (M1, M2, M3)
where EC: EvaluatorComponentTypes, <<EC as EvaluatorComponentTypes>::Model as InferenceStep>::Output: Adaptor<<M1 as Metric>::Input> + Adaptor<<M2 as Metric>::Input> + Adaptor<<M3 as Metric>::Input>, M1: Metric + Numeric + 'static, M2: Metric + Numeric + 'static, M3: Metric + Numeric + 'static,

§

fn register(self, builder: EvaluatorBuilder<EC>) -> EvaluatorBuilder<EC>

§

impl<M1, M2, M3, M4, EC> EvalMetricRegistration<EC> for (M1, M2, M3, M4)
where EC: EvaluatorComponentTypes, <<EC as EvaluatorComponentTypes>::Model as InferenceStep>::Output: Adaptor<<M1 as Metric>::Input> + Adaptor<<M2 as Metric>::Input> + Adaptor<<M3 as Metric>::Input> + Adaptor<<M4 as Metric>::Input>, M1: Metric + Numeric + 'static, M2: Metric + Numeric + 'static, M3: Metric + Numeric + 'static, M4: Metric + Numeric + 'static,

§

fn register(self, builder: EvaluatorBuilder<EC>) -> EvaluatorBuilder<EC>

§

impl<M1, M2, M3, M4, M5, EC> EvalMetricRegistration<EC> for (M1, M2, M3, M4, M5)
where EC: EvaluatorComponentTypes, <<EC as EvaluatorComponentTypes>::Model as InferenceStep>::Output: Adaptor<<M1 as Metric>::Input> + Adaptor<<M2 as Metric>::Input> + Adaptor<<M3 as Metric>::Input> + Adaptor<<M4 as Metric>::Input> + Adaptor<<M5 as Metric>::Input>, M1: Metric + Numeric + 'static, M2: Metric + Numeric + 'static, M3: Metric + Numeric + 'static, M4: Metric + Numeric + 'static, M5: Metric + Numeric + 'static,

§

fn register(self, builder: EvaluatorBuilder<EC>) -> EvaluatorBuilder<EC>

§

impl<M1, M2, M3, M4, M5, M6, EC> EvalMetricRegistration<EC> for (M1, M2, M3, M4, M5, M6)
where EC: EvaluatorComponentTypes, <<EC as EvaluatorComponentTypes>::Model as InferenceStep>::Output: Adaptor<<M1 as Metric>::Input> + Adaptor<<M2 as Metric>::Input> + Adaptor<<M3 as Metric>::Input> + Adaptor<<M4 as Metric>::Input> + Adaptor<<M5 as Metric>::Input> + Adaptor<<M6 as Metric>::Input>, M1: Metric + Numeric + 'static, M2: Metric + Numeric + 'static, M3: Metric + Numeric + 'static, M4: Metric + Numeric + 'static, M5: Metric + Numeric + 'static, M6: Metric + Numeric + 'static,

§

fn register(self, builder: EvaluatorBuilder<EC>) -> EvaluatorBuilder<EC>

Implementors§