pub struct MaterializedPrefix<Key, Score, Output, Reason> {
pub accepted: Vec<MaterializedItem<Key, Score, Output>>,
pub drop_counts: DropCounts<Reason>,
pub diagnostic_details: Vec<DropDiagnostic<Key, Score, Reason>>,
pub diagnostics_truncated: bool,
}Expand description
Successful bounded materialization result.
Fields§
§accepted: Vec<MaterializedItem<Key, Score, Output>>Accepted outputs in original candidate order.
drop_counts: DropCounts<Reason>Aggregate typed drop counts.
diagnostic_details: Vec<DropDiagnostic<Key, Score, Reason>>First bounded drop details in candidate order.
diagnostics_truncated: boolWhether at least one detail was omitted by the configured detail cap.
Trait Implementations§
Source§impl<Key: Clone, Score: Clone, Output: Clone, Reason: Clone> Clone for MaterializedPrefix<Key, Score, Output, Reason>
impl<Key: Clone, Score: Clone, Output: Clone, Reason: Clone> Clone for MaterializedPrefix<Key, Score, Output, Reason>
Source§impl<Key: Debug, Score: Debug, Output: Debug, Reason: Debug> Debug for MaterializedPrefix<Key, Score, Output, Reason>
impl<Key: Debug, Score: Debug, Output: Debug, Reason: Debug> Debug for MaterializedPrefix<Key, Score, Output, Reason>
impl<Key: Eq, Score: Eq, Output: Eq, Reason: Eq> Eq for MaterializedPrefix<Key, Score, Output, Reason>
Source§impl<Key: PartialEq, Score: PartialEq, Output: PartialEq, Reason: PartialEq> PartialEq for MaterializedPrefix<Key, Score, Output, Reason>
impl<Key: PartialEq, Score: PartialEq, Output: PartialEq, Reason: PartialEq> PartialEq for MaterializedPrefix<Key, Score, Output, Reason>
impl<Key: PartialEq, Score: PartialEq, Output: PartialEq, Reason: PartialEq> StructuralPartialEq for MaterializedPrefix<Key, Score, Output, Reason>
Auto Trait Implementations§
impl<Key, Score, Output, Reason> Freeze for MaterializedPrefix<Key, Score, Output, Reason>where
Vec<MaterializedItem<Key, Score, Output>>: Freeze,
DropCounts<Reason>: Freeze,
Vec<DropDiagnostic<Key, Score, Reason>>: Freeze,
impl<Key, Score, Output, Reason> RefUnwindSafe for MaterializedPrefix<Key, Score, Output, Reason>where
Vec<MaterializedItem<Key, Score, Output>>: RefUnwindSafe,
DropCounts<Reason>: RefUnwindSafe,
Vec<DropDiagnostic<Key, Score, Reason>>: RefUnwindSafe,
impl<Key, Score, Output, Reason> Send for MaterializedPrefix<Key, Score, Output, Reason>where
Vec<MaterializedItem<Key, Score, Output>>: Send,
DropCounts<Reason>: Send,
Vec<DropDiagnostic<Key, Score, Reason>>: Send,
impl<Key, Score, Output, Reason> Sync for MaterializedPrefix<Key, Score, Output, Reason>where
Vec<MaterializedItem<Key, Score, Output>>: Sync,
DropCounts<Reason>: Sync,
Vec<DropDiagnostic<Key, Score, Reason>>: Sync,
impl<Key, Score, Output, Reason> Unpin for MaterializedPrefix<Key, Score, Output, Reason>where
Vec<MaterializedItem<Key, Score, Output>>: Unpin,
DropCounts<Reason>: Unpin,
Vec<DropDiagnostic<Key, Score, Reason>>: Unpin,
impl<Key, Score, Output, Reason> UnsafeUnpin for MaterializedPrefix<Key, Score, Output, Reason>where
Vec<MaterializedItem<Key, Score, Output>>: UnsafeUnpin,
DropCounts<Reason>: UnsafeUnpin,
Vec<DropDiagnostic<Key, Score, Reason>>: UnsafeUnpin,
impl<Key, Score, Output, Reason> UnwindSafe for MaterializedPrefix<Key, Score, Output, Reason>where
Vec<MaterializedItem<Key, Score, Output>>: UnwindSafe,
DropCounts<Reason>: UnwindSafe,
Vec<DropDiagnostic<Key, Score, Reason>>: 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
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.