[−][src]Trait vindicator::SearchEntry
A search result entry with a unique document identifier and a similarity score. Types need to implement this type in order to be admitted as a search result.
Associated Types
Loading content...Required methods
Loading content...Provided methods
fn score(&self) -> Score
Retrieves this entry's similarity score.
fn to_entry(&self) -> EntryInfo<Self::Id> where
Self::Id: Clone,
Self::Id: Clone,
Constructs a minimalist entry info data structure.
Implementations on Foreign Types
impl<'a, T: ?Sized> SearchEntry for &'a T where
T: SearchEntry,
[src]
T: SearchEntry,
type Id = T::Id
fn id(&self) -> &Self::Id
[src]
fn score(&self) -> Score
[src]
fn to_entry(&self) -> EntryInfo<Self::Id> where
Self::Id: Clone,
[src]
Self::Id: Clone,
Implementors
impl SearchEntry for TrecEntryOwned
[src]
type Id = String
fn id(&self) -> &Self::Id
[src]
fn score(&self) -> Score
[src]
fn to_entry(&self) -> EntryInfo<Self::Id> where
Self::Id: Clone,
[src]
Self::Id: Clone,
impl<'a> SearchEntry for TrecEntry<'a>
[src]
type Id = &'a str
fn id(&self) -> &Self::Id
[src]
fn score(&self) -> Score
[src]
fn to_entry(&self) -> EntryInfo<Self::Id> where
Self::Id: Clone,
[src]
Self::Id: Clone,
impl<I> SearchEntry for EntryInfo<I> where
I: Eq,
[src]
I: Eq,
type Id = I
fn id(&self) -> &Self::Id
[src]
fn score(&self) -> Score
[src]
fn to_entry(&self) -> EntryInfo<I> where
I: Clone,
[src]
I: Clone,
impl<I> SearchEntry for RankedEntryInfo<I> where
I: Eq,
[src]
I: Eq,
type Id = I
fn id(&self) -> &Self::Id
[src]
fn score(&self) -> Score
[src]
fn to_entry(&self) -> EntryInfo<Self::Id> where
Self::Id: Clone,
[src]
Self::Id: Clone,
impl<T> SearchEntry for Ranked<T> where
T: SearchEntry,
[src]
T: SearchEntry,