pub struct KnnOptions {
pub max_distance: Option<f32>,
pub exclude_self: bool,
}Expand description
Options for a batch nearest-neighbour query.
Fields§
§max_distance: Option<f32>Largest Euclidean distance reported; farther targets leave the slot empty.
exclude_self: boolSkip the query atom itself (and, when periodic, its own images).
Implementations§
Source§impl KnnOptions
impl KnnOptions
Trait Implementations§
Source§impl Clone for KnnOptions
impl Clone for KnnOptions
impl Copy for KnnOptions
Source§impl Debug for KnnOptions
impl Debug for KnnOptions
Source§impl Default for KnnOptions
impl Default for KnnOptions
Source§impl PartialEq for KnnOptions
impl PartialEq for KnnOptions
impl StructuralPartialEq for KnnOptions
Auto Trait Implementations§
impl Freeze for KnnOptions
impl RefUnwindSafe for KnnOptions
impl Send for KnnOptions
impl Sync for KnnOptions
impl Unpin for KnnOptions
impl UnsafeUnpin for KnnOptions
impl UnwindSafe for KnnOptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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