pub struct Ranked<D> {
pub original_index: usize,
pub score: f64,
pub document: D,
}Expand description
One ranked document.
Fields§
§original_index: usizeIndex of the document in the input list.
score: f64Relevance score reported by the model.
document: DThe document.
Trait Implementations§
impl<D: PartialEq> StructuralPartialEq for Ranked<D>
Auto Trait Implementations§
impl<D> Freeze for Ranked<D>where
D: Freeze,
impl<D> RefUnwindSafe for Ranked<D>where
D: RefUnwindSafe,
impl<D> Send for Ranked<D>where
D: Send,
impl<D> Sync for Ranked<D>where
D: Sync,
impl<D> Unpin for Ranked<D>where
D: Unpin,
impl<D> UnsafeUnpin for Ranked<D>where
D: UnsafeUnpin,
impl<D> UnwindSafe for Ranked<D>where
D: UnwindSafe,
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