pub struct Metric32<C> {
pub name: &'static str,
/* private fields */
}Expand description
A single named scoring metric with its normalization strategy.
Metric32<C> combines a pure measure function fn(&C) -> f32 with a
Map0132 normalization. It stores no closures that capture state, so
Vec<Metric32<C>> works without trait objects.
Fields§
§name: &'static strHuman-readable name for this metric.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for Metric32<C>
impl<C> RefUnwindSafe for Metric32<C>
impl<C> Send for Metric32<C>
impl<C> Sync for Metric32<C>
impl<C> Unpin for Metric32<C>
impl<C> UnsafeUnpin for Metric32<C>
impl<C> UnwindSafe for Metric32<C>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more