pub enum ScoreMode {
Total,
Multiply,
Min,
Max,
Avg,
}
Expand description
The way the scores are combined can be controlled
Variants
Total
Add the original score and the rescore query score.
Multiply
Multiply the original score by the rescore query score.
Min
Take the min of the original score and the rescore query score.
Max
Take the max of original score and the rescore query score.
Avg
Average the original score and the rescore query score.
Trait Implementations
impl Copy for ScoreMode
impl StructuralPartialEq for ScoreMode
Auto Trait Implementations
impl RefUnwindSafe for ScoreMode
impl Send for ScoreMode
impl Sync for ScoreMode
impl Unpin for ScoreMode
impl UnwindSafe for ScoreMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more