#[non_exhaustive]pub enum IndexKind {
BruteForce,
Hnsw(HnswParams),
}Expand description
Which index to build. Default BruteForce, which is exact.
Hnsw is approximate and faster on large sets.
Passed to new_index.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BruteForce
Hnsw(HnswParams)
Trait Implementations§
impl StructuralPartialEq for IndexKind
Auto Trait Implementations§
impl Forget for IndexKind
impl Freeze for IndexKind
impl Move for IndexKind
impl RefUnwindSafe for IndexKind
impl Send for IndexKind
impl Sync for IndexKind
impl Unpin for IndexKind
impl UnsafeUnpin for IndexKind
impl UnwindSafe for IndexKind
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