Struct probly_search::QueryResult
source · pub struct QueryResult<T> {
pub key: T,
pub score: f64,
}
Expand description
Result type for querying an index.
Fields§
§key: T
Document key.
score: f64
Result score.
Trait Implementations§
source§impl<T: Debug> Debug for QueryResult<T>
impl<T: Debug> Debug for QueryResult<T>
source§impl<T: PartialEq> PartialEq for QueryResult<T>
impl<T: PartialEq> PartialEq for QueryResult<T>
source§fn eq(&self, other: &QueryResult<T>) -> bool
fn eq(&self, other: &QueryResult<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T> StructuralPartialEq for QueryResult<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for QueryResult<T>where
T: RefUnwindSafe,
impl<T> Send for QueryResult<T>where
T: Send,
impl<T> Sync for QueryResult<T>where
T: Sync,
impl<T> Unpin for QueryResult<T>where
T: Unpin,
impl<T> UnwindSafe for QueryResult<T>where
T: 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