pub struct Hit {
pub doc: u32,
pub score: f64,
}Expand description
One scored query result.
Fields§
§doc: u32Document id (insertion ordinal).
score: f64BM25-shaped relevance score; higher is better.
Trait Implementations§
impl StructuralPartialEq for Hit
Auto Trait Implementations§
impl Forget for Hit
impl Freeze for Hit
impl Move for Hit
impl RefUnwindSafe for Hit
impl Send for Hit
impl Sync for Hit
impl Unpin for Hit
impl UnsafeUnpin for Hit
impl UnwindSafe for Hit
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