pub struct Index<const N: usize> { /* private fields */ }
Expand description
An index.
Implementations§
source§impl<const N: usize> Index<N>
impl<const N: usize> Index<N>
sourcepub fn build(
vectors: &[Vector<N>],
forest_size: usize,
leaf_size: usize,
seed: u64
) -> Self
pub fn build( vectors: &[Vector<N>], forest_size: usize, leaf_size: usize, seed: u64 ) -> Self
Build an index.
The forest size is the number of trees built internally, and the leaf size is the maximum number of vectors a leaf can have without being split. Both arguments should be greater or equal to one.
Auto Trait Implementations§
impl<const N: usize> Freeze for Index<N>
impl<const N: usize> RefUnwindSafe for Index<N>
impl<const N: usize> Send for Index<N>
impl<const N: usize> Sync for Index<N>
impl<const N: usize> Unpin for Index<N>
impl<const N: usize> UnwindSafe for Index<N>
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