pub struct RecommendOpts {
pub exact_ok_factor: Option<f64>,
pub prefer_usearch: bool,
pub k: Option<usize>,
pub allow_gpu: bool,
}Expand description
Preferences that bias automatic method choice.
Fields§
§exact_ok_factor: Option<f64>Prefer exact when it is within this factor of the best ANN (default 1.25).
prefer_usearch: boolForce usearch even when ann-search is available (quantization / no faer).
k: Option<usize>Neighbours requested (affects exact vs ANN crossover slightly).
allow_gpu: boolInclude GPU method ids when the gpu feature is on and an adapter is up.
Default false so headless CI stays on CPU.
Trait Implementations§
Source§impl Clone for RecommendOpts
impl Clone for RecommendOpts
Source§fn clone(&self) -> RecommendOpts
fn clone(&self) -> RecommendOpts
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 RecommendOpts
impl Debug for RecommendOpts
Source§impl Default for RecommendOpts
impl Default for RecommendOpts
Source§fn default() -> RecommendOpts
fn default() -> RecommendOpts
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RecommendOpts
impl RefUnwindSafe for RecommendOpts
impl Send for RecommendOpts
impl Sync for RecommendOpts
impl Unpin for RecommendOpts
impl UnsafeUnpin for RecommendOpts
impl UnwindSafe for RecommendOpts
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
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