pub struct DistanceResult {
pub index: usize,
pub distance: f32,
}Expand description
Result of a batch distance computation.
Fields§
§index: usizeIndex of the vector in the batch.
distance: f32Distance value.
Trait Implementations§
Source§impl Clone for DistanceResult
impl Clone for DistanceResult
Source§fn clone(&self) -> DistanceResult
fn clone(&self) -> DistanceResult
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 DistanceResult
impl RefUnwindSafe for DistanceResult
impl Send for DistanceResult
impl Sync for DistanceResult
impl Unpin for DistanceResult
impl UnsafeUnpin for DistanceResult
impl UnwindSafe for DistanceResult
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