pub enum ScoringCombination {
WeightedSum,
WeightedProduct,
}Expand description
Composition of the ordered terms, before the shared decay factors.
Variants§
WeightedSum
sum(weight * value), preserving the existing ScoringSpec arithmetic.
WeightedProduct
product(value.powf(weight)). A zero weight contributes one.
Negative bases with fractional exponents fail with NonFiniteScore.
Trait Implementations§
Source§impl Clone for ScoringCombination
impl Clone for ScoringCombination
impl Copy for ScoringCombination
Source§impl Debug for ScoringCombination
impl Debug for ScoringCombination
impl Eq for ScoringCombination
Source§impl Hash for ScoringCombination
impl Hash for ScoringCombination
Source§impl Ord for ScoringCombination
impl Ord for ScoringCombination
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ScoringCombination
impl PartialEq for ScoringCombination
Source§impl PartialOrd for ScoringCombination
impl PartialOrd for ScoringCombination
impl StructuralPartialEq for ScoringCombination
Auto Trait Implementations§
impl Freeze for ScoringCombination
impl RefUnwindSafe for ScoringCombination
impl Send for ScoringCombination
impl Sync for ScoringCombination
impl Unpin for ScoringCombination
impl UnsafeUnpin for ScoringCombination
impl UnwindSafe for ScoringCombination
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