[−][src]Trait lsh_rs::VecHash
Implement this trait to create your own custom hashers.
In case of a symmetrical hash function, only hash_vec_query
needs to be implemented.
Required methods
fn hash_vec_query(&self, v: &[N]) -> Hash
Create a hash for a query data point.
Provided methods
fn hash_vec_put(&self, v: &[N]) -> Hash
Create a hash for a data point that is being stored.