Skip to main content

DynScoreSet64

Struct DynScoreSet64 

Source
pub struct DynScoreSet64<Ctx: ?Sized> { /* private fields */ }
Expand description

A dynamic f64 score set that sums a list of evaluators.

Implementations§

Source§

impl<Ctx: ?Sized> DynScoreSet64<Ctx>

Source

pub fn builder() -> DynScoreSet64Builder<Ctx>

Creates a builder for DynScoreSet64.

Source

pub fn len(&self) -> usize

Returns the number of stored metrics.

Source

pub fn is_empty(&self) -> bool

Returns true when no metrics are stored.

Trait Implementations§

Source§

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

Source§

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

Computes a score from ctx.

Auto Trait Implementations§

§

impl<Ctx> !RefUnwindSafe for DynScoreSet64<Ctx>

§

impl<Ctx> !UnwindSafe for DynScoreSet64<Ctx>

§

impl<Ctx> Freeze for DynScoreSet64<Ctx>
where Box<[Box<dyn EvalF64<Ctx>>]>: Freeze, Ctx: ?Sized,

§

impl<Ctx> Send for DynScoreSet64<Ctx>
where Box<[Box<dyn EvalF64<Ctx>>]>: Send, Ctx: ?Sized,

§

impl<Ctx> Sync for DynScoreSet64<Ctx>
where Box<[Box<dyn EvalF64<Ctx>>]>: Sync, Ctx: ?Sized,

§

impl<Ctx> Unpin for DynScoreSet64<Ctx>
where Box<[Box<dyn EvalF64<Ctx>>]>: Unpin, Ctx: ?Sized,

§

impl<Ctx> UnsafeUnpin for DynScoreSet64<Ctx>
where Box<[Box<dyn EvalF64<Ctx>>]>: UnsafeUnpin, Ctx: ?Sized,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WitnessExt for T

Source§

fn witness(self) -> Witnessing<Self>