Skip to main content

EvalF32

Trait EvalF32 

Source
pub trait EvalF32<Ctx: ?Sized>: Send + Sync {
    // Required method
    fn eval(&self, ctx: &Ctx) -> f32;
}
Expand description

Evaluates a context into an f32 score.

Required Methods§

Source

fn eval(&self, ctx: &Ctx) -> f32

Computes a score from ctx.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<Ctx, E> EvalF32<Ctx> for Box<E>
where Ctx: ?Sized, E: EvalF32<Ctx> + ?Sized,

Source§

fn eval(&self, ctx: &Ctx) -> f32

Implementors§

Source§

impl<Ctx, E> EvalF32<Ctx> for Weighted32<E>
where Ctx: ?Sized, E: EvalF32<Ctx>,

Source§

impl<Ctx, M, G> EvalF32<Ctx> for NormalizedEval32<M, G>
where Ctx: ?Sized, M: Measure<Ctx>, G: Map01F32<Input = M::Output>,

Source§

impl<Ctx: ?Sized> EvalF32<Ctx> for DynScoreSet32<Ctx>