Struct usearch::ffi::IndexOptions
source · #[repr(C)]pub struct IndexOptions {
pub dimensions: usize,
pub metric: MetricKind,
pub quantization: ScalarKind,
pub connectivity: usize,
pub expansion_add: usize,
pub expansion_search: usize,
pub multi: bool,
}
Expand description
The index options used to configure the dense index during creation. It contains the number of dimensions, the metric kind, the scalar kind, the connectivity, the expansion values, and the multi-flag.
Fields§
§dimensions: usize
§metric: MetricKind
§quantization: ScalarKind
§connectivity: usize
§expansion_add: usize
§expansion_search: usize
§multi: bool
Trait Implementations§
source§impl Clone for IndexOptions
impl Clone for IndexOptions
source§impl Debug for IndexOptions
impl Debug for IndexOptions
source§impl Default for IndexOptions
impl Default for IndexOptions
source§impl ExternType for IndexOptions
impl ExternType for IndexOptions
source§impl PartialEq for IndexOptions
impl PartialEq for IndexOptions
source§fn eq(&self, other: &IndexOptions) -> bool
fn eq(&self, other: &IndexOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IndexOptions
Auto Trait Implementations§
impl Freeze for IndexOptions
impl RefUnwindSafe for IndexOptions
impl Send for IndexOptions
impl Sync for IndexOptions
impl Unpin for IndexOptions
impl UnwindSafe for IndexOptions
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