pub struct TLSHConfig {
pub n_tables: usize,
pub semantic_bits: usize,
pub temporal_bits: usize,
pub temporal_bucket_us: i64,
pub n_probes: usize,
}Expand description
Configuration for the T-LSH index.
Fields§
§n_tables: usizeNumber of hash tables (more = higher recall, more memory).
semantic_bits: usizeNumber of semantic hash bits per table.
temporal_bits: usizeNumber of temporal hash bits per table.
temporal_bucket_us: i64Temporal bucket size in microseconds.
n_probes: usizeNumber of neighboring buckets to probe (multi-probe depth).
Implementations§
Trait Implementations§
Source§impl Clone for TLSHConfig
impl Clone for TLSHConfig
Source§fn clone(&self) -> TLSHConfig
fn clone(&self) -> TLSHConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TLSHConfig
impl Debug for TLSHConfig
Auto Trait Implementations§
impl Freeze for TLSHConfig
impl RefUnwindSafe for TLSHConfig
impl Send for TLSHConfig
impl Sync for TLSHConfig
impl Unpin for TLSHConfig
impl UnwindSafe for TLSHConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more