pub struct RangeQuery<'a> {
pub query: &'a [f32],
pub d_min: f32,
pub d_max: f32,
}Expand description
A range query: find all vectors whose Euclidean distance to query
lies within [d_min, d_max].
Fields§
§query: &'a [f32]The query vector. Must have length equal to RingDb::dims().
d_min: f32Lower bound of the distance interval (inclusive). Must be ≥ 0.
d_max: f32Upper bound of the distance interval (inclusive). Must be ≥ d_min.
Auto Trait Implementations§
impl<'a> Freeze for RangeQuery<'a>
impl<'a> RefUnwindSafe for RangeQuery<'a>
impl<'a> Send for RangeQuery<'a>
impl<'a> Sync for RangeQuery<'a>
impl<'a> Unpin for RangeQuery<'a>
impl<'a> UnsafeUnpin for RangeQuery<'a>
impl<'a> UnwindSafe for RangeQuery<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more