pub enum CompositeStrategy {
Maximum,
Average,
Fallback(f64),
Weighted(Vec<f64>),
}Expand description
Strategy for combining multiple metrics
Variants§
Maximum
Use the maximum score from any metric
Average
Use the average score from all metrics
Fallback(f64)
Use the first metric that returns a score above the threshold
Weighted(Vec<f64>)
Weight metrics by position (earlier metrics have higher priority)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CompositeStrategy
impl RefUnwindSafe for CompositeStrategy
impl Send for CompositeStrategy
impl Sync for CompositeStrategy
impl Unpin for CompositeStrategy
impl UnwindSafe for CompositeStrategy
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