pub struct RescoreSpec {
pub window_size: usize,
pub query_weight: f32,
pub rescore_query_weight: f32,
pub score_mode: RescoreScoreMode,
/* private fields */
}Expand description
Rescore specification for second-pass re-ranking.
Fields§
§window_size: usize§query_weight: f32§rescore_query_weight: f32§score_mode: RescoreScoreModeAuto Trait Implementations§
impl !RefUnwindSafe for RescoreSpec
impl !UnwindSafe for RescoreSpec
impl Freeze for RescoreSpec
impl Send for RescoreSpec
impl Sync for RescoreSpec
impl Unpin for RescoreSpec
impl UnsafeUnpin for RescoreSpec
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more