Struct instant_distance::Builder [−][src]
pub struct Builder { /* fields omitted */ }
Expand description
Parameters for building the Hnsw
Implementations
impl Builder
[src]
impl Builder
[src]pub fn ef_construction(self, ef_construction: usize) -> Self
[src]
pub fn ef_construction(self, ef_construction: usize) -> Self
[src]Set the efConstruction
parameter from the paper
pub fn ef_search(self, ef: usize) -> Self
[src]
pub fn ef_search(self, ef: usize) -> Self
[src]Set the ef
parameter from the paper
If the efConstruction
parameter is not already set, it will be set
to the same value as ef
by default.
pub fn select_heuristic(self, params: Option<Heuristic>) -> Self
[src]
pub fn ml(self, ml: f32) -> Self
[src]
pub fn ml(self, ml: f32) -> Self
[src]Set the mL
parameter from the paper
If the mL
parameter is not already set, it defaults to 1.0 / ln(M)
.
pub fn seed(self, seed: u64) -> Self
[src]
pub fn seed(self, seed: u64) -> Self
[src]Set the seed value for the random number generator used to generate a layer for each point
If this value is left unset, a seed is generated from entropy (via getrandom()
).
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,