pub enum ScoredInput {
All,
Candidates(SelectedIds),
Entries {
entries: Vec<ScoredEntry>,
score_bearing: bool,
},
}Variants§
Implementations§
Source§impl ScoredInput
impl ScoredInput
pub fn entries(entries: Vec<ScoredEntry>, score_bearing: bool) -> Self
Sourcepub fn retain_top_scores_with_ties(&mut self, top_k: usize)
pub fn retain_top_scores_with_ties(&mut self, top_k: usize)
Discard rows whose score cannot reach a score-first SQL slice while
retaining the complete boundary-score group for exact secondary
ordering. The relational sort still chooses the final LIMIT rows.
Auto Trait Implementations§
impl !RefUnwindSafe for ScoredInput
impl !UnwindSafe for ScoredInput
impl Freeze for ScoredInput
impl Send for ScoredInput
impl Sync for ScoredInput
impl Unpin for ScoredInput
impl UnsafeUnpin for ScoredInput
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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