pub struct RankedItem {
pub index: usize,
pub score: f64,
}Expand description
A single ranked item from reranking.
Fields§
§index: usizeIndex in the original candidates list.
score: f64Relevance score (0.0-1.0, higher = more relevant).
Trait Implementations§
Source§impl Clone for RankedItem
impl Clone for RankedItem
Source§fn clone(&self) -> RankedItem
fn clone(&self) -> RankedItem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RankedItem
impl RefUnwindSafe for RankedItem
impl Send for RankedItem
impl Sync for RankedItem
impl Unpin for RankedItem
impl UnwindSafe for RankedItem
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