pub struct SimHashIndex { /* private fields */ }Implementations§
Source§impl SimHashIndex
impl SimHashIndex
pub fn new(config: IndexConfig) -> Self
pub fn new_google64_k3() -> Self
pub fn from_items<I, S>(config: IndexConfig, items: I) -> Self
pub fn config(&self) -> &IndexConfig
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn insert<S: Into<String>>(&mut self, id: S, fingerprint: SimHash64)
pub fn query(&self, fingerprint: SimHash64) -> Vec<Match>
Trait Implementations§
Source§impl Clone for SimHashIndex
impl Clone for SimHashIndex
Source§fn clone(&self) -> SimHashIndex
fn clone(&self) -> SimHashIndex
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SimHashIndex
impl RefUnwindSafe for SimHashIndex
impl Send for SimHashIndex
impl Sync for SimHashIndex
impl Unpin for SimHashIndex
impl UnsafeUnpin for SimHashIndex
impl UnwindSafe for SimHashIndex
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