pub struct SimilarityMatch {
pub unit_id: u64,
pub score: f32,
}Expand description
A single similarity match.
Fields§
§unit_id: u64The similar unit.
score: f32Cosine similarity score.
Trait Implementations§
Source§impl Clone for SimilarityMatch
impl Clone for SimilarityMatch
Source§fn clone(&self) -> SimilarityMatch
fn clone(&self) -> SimilarityMatch
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 moreAuto Trait Implementations§
impl Freeze for SimilarityMatch
impl RefUnwindSafe for SimilarityMatch
impl Send for SimilarityMatch
impl Sync for SimilarityMatch
impl Unpin for SimilarityMatch
impl UnsafeUnpin for SimilarityMatch
impl UnwindSafe for SimilarityMatch
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