pub struct AcceleratorSet<S: Store> { /* private fields */ }Expand description
Validated source-bound derived accelerators available to one search.
Implementations§
Source§impl<S: Store> AcceleratorSet<S>
impl<S: Store> AcceleratorSet<S>
pub fn try_new( source: &ProximityTree, hnsw: Option<HnswIndex<S>>, pq: Option<ProductQuantizer<S>>, ) -> Result<Self, Error>
pub fn empty() -> Self
pub fn with_hnsw( self, source: &ProximityTree, index: HnswIndex<S>, ) -> Result<Self, Error>
pub fn with_pq( self, source: &ProximityTree, index: ProductQuantizer<S>, ) -> Result<Self, Error>
pub fn with_composite( self, source: &ProximityTree, accelerator: CompositeAccelerator<S>, ) -> Result<Self, Error>
Trait Implementations§
Auto Trait Implementations§
impl<S> !Freeze for AcceleratorSet<S>
impl<S> RefUnwindSafe for AcceleratorSet<S>where
S: RefUnwindSafe,
impl<S> Send for AcceleratorSet<S>
impl<S> Sync for AcceleratorSet<S>
impl<S> Unpin for AcceleratorSet<S>where
S: Unpin,
impl<S> UnsafeUnpin for AcceleratorSet<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for AcceleratorSet<S>where
S: UnwindSafe,
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