pub struct RetrievalMatch {
pub key: Vec<u8>,
pub score: f64,
}Expand description
One globally ranked exact match.
Fields§
§key: Vec<u8>Candidate key.
score: f64Exact cosine similarity in [-1, 1].
Trait Implementations§
Source§impl Clone for RetrievalMatch
impl Clone for RetrievalMatch
Source§fn clone(&self) -> RetrievalMatch
fn clone(&self) -> RetrievalMatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RetrievalMatch
impl Debug for RetrievalMatch
Source§impl PartialEq for RetrievalMatch
impl PartialEq for RetrievalMatch
impl StructuralPartialEq for RetrievalMatch
Auto Trait Implementations§
impl Freeze for RetrievalMatch
impl RefUnwindSafe for RetrievalMatch
impl Send for RetrievalMatch
impl Sync for RetrievalMatch
impl Unpin for RetrievalMatch
impl UnsafeUnpin for RetrievalMatch
impl UnwindSafe for RetrievalMatch
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