pub struct LshExternal<'a, const N: usize> { /* private fields */ }
Expand description
A simple LSH-based ANNIndex implementation.
Implementations§
Source§impl<const N: usize> LshExternal<'_, N>
impl<const N: usize> LshExternal<'_, N>
Sourcepub fn inner_node_count(&self) -> usize
pub fn inner_node_count(&self) -> usize
Count the number of inner nodes in the index.
Trait Implementations§
Source§impl<'a, const N: usize> ANNIndexExternal<'a, N> for LshExternal<'a, N>
impl<'a, const N: usize> ANNIndexExternal<'a, N> for LshExternal<'a, N>
Source§fn memory_usage(&self) -> usize
fn memory_usage(&self) -> usize
Get the memory usage of the index.
type Index = LshExternal<'a, N>
Auto Trait Implementations§
impl<'a, const N: usize> Freeze for LshExternal<'a, N>
impl<'a, const N: usize> RefUnwindSafe for LshExternal<'a, N>
impl<'a, const N: usize> Send for LshExternal<'a, N>
impl<'a, const N: usize> Sync for LshExternal<'a, N>
impl<'a, const N: usize> Unpin for LshExternal<'a, N>
impl<'a, const N: usize> UnwindSafe for LshExternal<'a, 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