[−][src]Struct vindicator::EntryInfo
A simple struct for minimally describing a scored search result.
Fields
id: I
The entry's document ID.
score: Score
The entry's similarity score.
Trait Implementations
impl<I> SearchEntry for EntryInfo<I> where
I: Eq,
[src]
I: Eq,
type Id = I
The unique document identifier type.
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: Copy> Copy for EntryInfo<I>
[src]
impl<I: Eq> Eq for EntryInfo<I>
[src]
impl<I: PartialEq> PartialEq<EntryInfo<I>> for EntryInfo<I>
[src]
impl<I: Clone> Clone for EntryInfo<I>
[src]
fn clone(&self) -> EntryInfo<I>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<I: Debug> Debug for EntryInfo<I>
[src]
impl<I> AbsDiffEq for EntryInfo<I> where
I: PartialEq<I>,
[src]
I: PartialEq<I>,
type Epsilon = f32
Used for specifying relative comparisons.
fn default_epsilon() -> Self::Epsilon
[src]
fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
[src]
fn abs_diff_ne(&self, other: &Self, epsilon: Self::Epsilon) -> bool
[src]
The inverse of ApproxEq::abs_diff_eq
.
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,