Skip to main content

EvalF64

Trait EvalF64 

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

Evaluates a context into an f64 score.

Required Methods§

Source

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

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> EvalF64<Ctx> for Box<E>
where Ctx: ?Sized, E: EvalF64<Ctx> + ?Sized,

Source§

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

Implementors§

Source§

impl<Ctx, E> EvalF64<Ctx> for Weighted64<E>
where Ctx: ?Sized, E: EvalF64<Ctx>,

Source§

impl<Ctx, M, G> EvalF64<Ctx> for NormalizedEval64<M, G>
where Ctx: ?Sized, M: Measure<Ctx>, G: Map01F64<Input = M::Output>,

Source§

impl<Ctx: ?Sized> EvalF64<Ctx> for DynScoreSet64<Ctx>