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 Eq for ScoreMode
impl StructuralPartialEq for ScoreMode
Auto Trait Implementations§
impl Freeze for ScoreMode
impl RefUnwindSafe for ScoreMode
impl Send for ScoreMode
impl Sync for ScoreMode
impl Unpin for ScoreMode
impl UnwindSafe for ScoreMode
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