pub struct ScoredItem {
pub key: Key,
pub score: f32,
}Expand description
Scored output item.
Fields§
§key: KeyKey identifying the item.
score: f32Similarity score (higher is better).
Trait Implementations§
Source§impl Clone for ScoredItem
impl Clone for ScoredItem
Source§fn clone(&self) -> ScoredItem
fn clone(&self) -> ScoredItem
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 Debug for ScoredItem
impl Debug for ScoredItem
Source§impl PartialEq for ScoredItem
impl PartialEq for ScoredItem
impl StructuralPartialEq for ScoredItem
Auto Trait Implementations§
impl Freeze for ScoredItem
impl RefUnwindSafe for ScoredItem
impl Send for ScoredItem
impl Sync for ScoredItem
impl Unpin for ScoredItem
impl UnwindSafe for ScoredItem
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