pub struct MaterializedItem<Key, Score, Output> {
pub candidate: RankedCandidate<Key, Score>,
pub rank: usize,
pub output: Output,
}Expand description
One retained accepted output.
Fields§
§candidate: RankedCandidate<Key, Score>Original candidate, including its unchanged score.
rank: usizeCompact one-based result rank.
output: OutputCaller-owned output projection.
Trait Implementations§
impl<Key: Eq, Score: Eq, Output: Eq> Eq for MaterializedItem<Key, Score, Output>
Source§impl<Key: PartialEq, Score: PartialEq, Output: PartialEq> PartialEq for MaterializedItem<Key, Score, Output>
impl<Key: PartialEq, Score: PartialEq, Output: PartialEq> PartialEq for MaterializedItem<Key, Score, Output>
impl<Key: PartialEq, Score: PartialEq, Output: PartialEq> StructuralPartialEq for MaterializedItem<Key, Score, Output>
Auto Trait Implementations§
impl<Key, Score, Output> Freeze for MaterializedItem<Key, Score, Output>
impl<Key, Score, Output> RefUnwindSafe for MaterializedItem<Key, Score, Output>
impl<Key, Score, Output> Send for MaterializedItem<Key, Score, Output>
impl<Key, Score, Output> Sync for MaterializedItem<Key, Score, Output>
impl<Key, Score, Output> Unpin for MaterializedItem<Key, Score, Output>
impl<Key, Score, Output> UnsafeUnpin for MaterializedItem<Key, Score, Output>
impl<Key, Score, Output> UnwindSafe for MaterializedItem<Key, Score, Output>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.