pub struct RankedEntryInfo<I> {
pub id: I,
pub score: Score,
pub rank: Rank,
}Expand description
A simple struct for minimally describing a scored and ranked search result.
Fields§
§id: IThe entry’s document ID.
score: ScoreThe entry’s similarity score.
rank: RankThe entry’s rank.
Trait Implementations§
Source§impl<I: Clone> Clone for RankedEntryInfo<I>
impl<I: Clone> Clone for RankedEntryInfo<I>
Source§fn clone(&self) -> RankedEntryInfo<I>
fn clone(&self) -> RankedEntryInfo<I>
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 moreSource§impl<I: Debug> Debug for RankedEntryInfo<I>
impl<I: Debug> Debug for RankedEntryInfo<I>
Source§impl<I: PartialEq> PartialEq for RankedEntryInfo<I>
impl<I: PartialEq> PartialEq for RankedEntryInfo<I>
Source§impl<I> RankedSearchEntry for RankedEntryInfo<I>where
I: Eq,
impl<I> RankedSearchEntry for RankedEntryInfo<I>where
I: Eq,
Source§impl<I> SearchEntry for RankedEntryInfo<I>where
I: Eq,
impl<I> SearchEntry for RankedEntryInfo<I>where
I: Eq,
impl<I: Copy> Copy for RankedEntryInfo<I>
impl<I: Eq> Eq for RankedEntryInfo<I>
impl<I> StructuralPartialEq for RankedEntryInfo<I>
Auto Trait Implementations§
impl<I> Freeze for RankedEntryInfo<I>where
I: Freeze,
impl<I> RefUnwindSafe for RankedEntryInfo<I>where
I: RefUnwindSafe,
impl<I> Send for RankedEntryInfo<I>where
I: Send,
impl<I> Sync for RankedEntryInfo<I>where
I: Sync,
impl<I> Unpin for RankedEntryInfo<I>where
I: Unpin,
impl<I> UnwindSafe for RankedEntryInfo<I>where
I: 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